C# String String(SByte*, Int32, Int32, Encoding)
Description
String String(SByte*, Int32, Int32, Encoding)
initializes
a new instance of the String class to the value indicated by a specified pointer
to an array of 8-bit signed integers, a starting position within that array,
a length, and an Encoding object.
Syntax
String.String(SByte*, Int32, Int32, Encoding)
has the following syntax.
[CLSCompliantAttribute(false)]/*w w w .ja v a2 s . c o m*/
public String(
sbyte* value,
int startIndex,
int length,
Encoding enc
)
Parameters
String.String(SByte*, Int32, Int32, Encoding)
has the following parameters.
value
- A pointer to an array of 8-bit signed integers.startIndex
- The starting position within value.length
- The number of characters within value to use.enc
- An object that specifies how the array referenced by value is encoded. If enc is null, ANSI encoding is assumed.