Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the offset, in bytes, to the data in the given string.
Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared ReadOnly Property OffsetToStringData As Integer
public static int OffsetToStringData { get; }
public:
static property int OffsetToStringData {
int get ();
}
static member OffsetToStringData : int with get
static function get OffsetToStringData () : int
Property Value
Type: System. . :: . .Int32
The byte offset, from the start of the String object to the first character in the string.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.