RuntimeHelpers.OffsetToStringData Property
Definition
Gets the offset, in bytes, to the data in the given string.
public:
static property int OffsetToStringData { int get(); };
public static int OffsetToStringData { get; }
member this.OffsetToStringData : int
Public Shared ReadOnly Property OffsetToStringData As Integer
Property Value
Remarks
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 before use. Note that common language runtime strings are immutable; that is, their contents can be read but not changed.