public static unsafe uint[] GetBaseIndicies(this ICorDebugArrayValue corArray) { uint[] baseIndicies = new uint[corArray.GetRank()]; fixed(uint *pBaseIndicies = baseIndicies) corArray.GetBaseIndicies((uint)baseIndicies.Length, new IntPtr(pBaseIndicies)); return(baseIndicies); }
// ICorDebugArrayValue public static unsafe uint[] GetDimensions(this ICorDebugArrayValue corArray) { uint[] dimensions = new uint[corArray.GetRank()]; fixed(uint *pDimensions = dimensions) corArray.GetDimensions((uint)dimensions.Length, new IntPtr(pDimensions)); return(dimensions); }