Пример #1
0
        public void NewParameterizedArray(CorType type, int rank, int dims, int lowBounds)
        {
            ICorDebugEval2 eval2      = (ICorDebugEval2)m_eval;
            uint           udims      = (uint)dims;
            uint           ulowBounds = (uint)lowBounds;

            eval2.NewParameterizedArray(type.m_type, (uint)rank, ref udims, ref ulowBounds);
        }
Пример #2
0
 /// <summary>
 /// Allocates a new array of the specified element type and dimensions
 /// </summary>
 /// <param name="type">Type</param>
 /// <param name="dims">Dimensions</param>
 /// <param name="lowBounds">Lower bounds or null (ignored by the CLR debugger at the moment)</param>
 /// <returns></returns>
 public int NewParameterizedArray(CorType type, uint[] dims, int[] lowBounds = null)
 {
     if (eval2 == null)
     {
         return(-1);
     }
     Debug.Assert(dims != null && (lowBounds == null || lowBounds.Length == dims.Length));
     return(eval2.NewParameterizedArray(type.RawObject, dims.Length, dims, lowBounds));
 }