ArrayWithOffset Structure
Collapse the table of content
Expand the table of content

ArrayWithOffset Structure


Encapsulates an array and an offset within the specified array.

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

public struct ArrayWithOffset

System_CAPS_pubmethodArrayWithOffset(Object, Int32)

Initializes a new instance of the ArrayWithOffset structure.


Indicates whether the specified ArrayWithOffset object matches the current instance.


Indicates whether the specified object matches the current ArrayWithOffset object.(Overrides ValueType.Equals(Object).)


Returns the managed array referenced by this ArrayWithOffset.


Returns a hash code for this value type.(Overrides ValueType.GetHashCode().)


Returns the offset provided when this ArrayWithOffset was constructed.


Gets the Type of the current instance.(Inherited from Object.)


Returns the fully qualified type name of this instance.(Inherited from ValueType.)

System_CAPS_puboperatorSystem_CAPS_staticEquality(ArrayWithOffset, ArrayWithOffset)

Determines whether two specified ArrayWithOffset objects have the same value.

System_CAPS_puboperatorSystem_CAPS_staticInequality(ArrayWithOffset, ArrayWithOffset)

Determines whether two specified ArrayWithOffset objects no not have the same value.

Can be used as an argument to a native method reached through platform invoke. In this case, the platform invoke marshaler will retrieve the starting address of the array, add the offset, and pass the resulting pointer to the underlying native function. This structure only supports arrays containing no references, such as primitive type arrays and value type arrays containing only fields of primitive types.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2015 Microsoft