In C# is it faster to access
value = array[i];
or
fixed(Type123* pointerOfArray = arrayOfType123)
value = *(pointerOfArray+i)
Is there any difference between these operations? Is there a way unsafe
and fixed
could improve its access ?
In C# is it faster to access
value = array[i];
or
fixed(Type123* pointerOfArray = arrayOfType123)
value = *(pointerOfArray+i)
Is there any difference between these operations? Is there a way unsafe
and fixed
could improve its access ?