public TTo GetElementUnaligned(
int y,
int x
)Public Function GetElementUnaligned (
y As Integer,
x As Integer
) As TTopublic:
TTo GetElementUnaligned(
int y,
int x
)member GetElementUnaligned :
y : int *
x : int -> 'TTo This method assumes misaligned address for primitive TTo items, and also validates the indices against Length. To omit range validation and still reading the elements assuming misalignment, use the GetElementReferenceUnsafe method with a compiler that supports members that return values by reference, and make sure you cast the type of the reference properly before dereferencing it.
Though this member does not validate the coordinates separately, it does not allow indexing beyond the Length of the underlying Buffer.
| IndexOutOfRangeException | The specified indices refer to an item outside the bounds of the underlying Buffer. |
| NotSupportedException | .NET Framework only: you access this member in a partially trusted AppDomain that does not allow executing unverifiable code. |