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.




















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version