I am having trouble creating an alias for a member of a struct array. Usually when the array members are of reference type, I create a reference to the member's reference as follows:
CustomReferenceType[] foo = new CustomReferenceType[10];
CustomReferenceType alias=foo[0];
Attempting to do something like that to an array with value type members, the compiler copies the value itself to the new variable, so for instance, when I manipulate the members of my struct, the changes are not reflected back to the original struct.
Is there a way to alias value type members without boxing/unboxing?