public void SetElementUnaligned(
int index,
TTo value
)Public Sub SetElementUnaligned (
index As Integer,
value As TTo
)public:
void SetElementUnaligned(
int index,
TTo value
)member SetElementUnaligned :
index : int *
value : 'TTo -> unit This method assumes misaligned address for primitive TTo items, and also validates index against Length. To omit range validation and still writing 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.
| IndexOutOfRangeException | index is less than zero or greater or equal to Length. |
| NotSupportedException | .NET Framework only: you access this member in a partially trusted AppDomain that does not allow executing unverifiable code. |