Passing Arrays and Array Elements to Methods as Parameters
To pass an array argument to a method, specify the name of the array without any brackets. For a method to receive an array reference through a method call, the method’s parameter list must specify an array parameter.
When an argument to a method is an entire array or an individual array element of a reference type, the called method receives a copy of the reference.
When an argument to a method is an individual array element of a value type, the called method receives a copy of the element’s value.
To pass an individual array element to a method, use the indexed name of the array as an argument in the method call.
A string is an object of class string in the System namespace representing a series of characters.
These characters can be uppercase letters, lowercase letters, digits and various special characters .
Character constants are established according to the Unicode character set .
String is a reference type.
The keyword null represents a null, not an empty string (which is a string object that is of length 0 and contains no characters). The String.Empty should be used if you need a string with no characters.
Class string provides 8 constructors. Below is the use of 3 constructors:
Assign a string literal to string reference originalString. The string constructor can take a char array and two int arguments for starting position and length. Copy a reference to another string literal. The string constructor can take a character array as an argument. The string constructor can take as arguments a character and an int specifying the number of times to repeat that character in the string .