Mono Class Library: System.Runtime.CompilerServices.RuntimeHelpers Overview | Members

System.Runtime.CompilerServices.RuntimeHelpers.OffsetToStringData Property

Gets the number of bytes between the start of a string and the first char in the string. [Edit]

Value: 12

public static int OffsetToStringData { get; }

Value

A int containing the number of bytes between the start of a string and the first char in the string. [Edit]

Remarks

This property is read-only.

Note:

This property is deprecated; its design is considered unnecessarily inflexible. It is expected that an improved design can be incorporated into the next revision of this Standard.

Compilers use this property for unsafe, but efficient, pointer operations on the characters in a managed string. Compilers should pin the string against movement by the garbage collector prior to use. Note that strings are immutable: their contents can be read but not changed.

The contents of these offset bytes are implementation-defined.

[Edit]

Requirements

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