Esempio n. 1
0
        public sealed override Type MakeArrayType()
        {
            if (ReflectionTrace.Enabled)
            {
                ReflectionTrace.Type_MakeArrayType(this);
            }

            // Do not implement this as a call to MakeArrayType(1) - they are not interchangable. MakeArrayType() returns a
            // vector type ("SZArray") while MakeArrayType(1) returns a multidim array of rank 1. These are distinct types
            // in the ECMA model and in CLR Reflection.
            return(ReflectionCoreNonPortable.GetArrayType(this));
        }
Esempio n. 2
0
        public sealed override Type MakeArrayType(int rank)
        {
            if (ReflectionTrace.Enabled)
            {
                ReflectionTrace.Type_MakeArrayType(this);
            }

            if (rank <= 0)
            {
                throw new IndexOutOfRangeException();
            }
            return(ReflectionCoreNonPortable.GetMultiDimArrayType(this, rank));
        }
Esempio n. 3
0
 public sealed override void Type_MakeArrayType(Type type)
 {
     ReflectionTrace.Type_MakeArrayType(type);
 }