Mono Class Library: System.String Overview | MembersSystem.String Constructor |
Constructs and initializes a new instance of string using a specified pointer to a sequence of Unicode characters. [Edit]
|
- value
- A pointer to a null-terminated array of Unicode characters. If value is a null pointer, string.Empty is created. [Edit]
This member is not CLS-compliant. For a CLS-compliant alternative, use the string(char[] ) constructor.
This constructor copies the sequence of Unicode characters at the specified pointer until a null character (hexadecimal 0x00) is reached.
If the specified array is not null-terminated, the behavior of this constructor is system dependent. For example, such a situation might cause an access violation.
Note: In C# this constructor is defined only in the context of unmanaged code.[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0