Пример #1
0
 public sealed override Type MakeArrayType()
 {
     // 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));
 }
Пример #2
0
        public sealed override Type MakeArrayType()
        {
#if ENABLE_REFLECTION_TRACE
            if (ReflectionTrace.Enabled)
            {
                ReflectionTrace.Type_MakeArrayType(this);
            }
#endif

            // 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));
        }