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)); }
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)); }
public sealed override void Type_MakeArrayType(Type type) { ReflectionTrace.Type_MakeArrayType(type); }