/// <summary>
/// Fetches the element at the specified index.
/// </summary>
/// <exception cref="System.ArgumentOutOfRangeException">
/// Thrown when the specified index is not in range (<0 or >&eq;length).
/// </exception>
public T this[int index]
{
get {
Contract.RequiresInRange(index, Length);
return(PtrUtils.Get <T>(
m_object, m_offset + (index * PtrUtils.SizeOf <T>())));
}
set {
Contract.RequiresInRange(index, Length);
PtrUtils.Set <T>(
m_object, m_offset + (index * PtrUtils.SizeOf <T>()), value);
}
}