コード例 #1
0
        // 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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Value.cs プロジェクト: DeanYQ/donet-debugger
 internal CorArrayValue(ICorDebugArrayValue arrayValue)
     : base(arrayValue)
 {
     m_arrayVal = arrayValue;
 }
コード例 #4
0
 public static unsafe ICorDebugValue GetElement(this ICorDebugArrayValue corArray, int[] indices)
 {
     fixed(int *pIndices = indices)
     return(corArray.GetElement((uint)indices.Length, new IntPtr(pIndices)));
 }
コード例 #5
0
ファイル: Value.cs プロジェクト: Gravecorp/ipydbg
 internal CorArrayValue(ICorDebugArrayValue arrayValue)
     : base(arrayValue)
 {
     m_arrayVal = arrayValue;
 }