RuntimeHelpers.OffsetToStringData Property

 

Gets the offset, in bytes, to the data in the given string.

Namespace:   System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

Public Shared ReadOnly Property OffsetToStringData As Integer

Property Value

Type: System.Int32

The byte offset, from the start of the String object to the first character in the string.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: