Mono Class Library: System.String Overview | Members

System.String Constructor

Constructs and initializes a new instance of string using a specified pointer to a sequence of Unicode characters. [Edit]

[System.CLSCompliant(false)]
public String (char* value)

Parameters

value
A pointer to a null-terminated array of Unicode characters. If value is a null pointer, string.Empty is created. [Edit]

Remarks

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]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0