Reimplemented from System.Type.
Definition at line 2881 of file RuntimeType.cs.
2882 {
2884 {
2885 throw new ArgumentNullException("instantiation");
2886 }
2888 {
2890 }
2893 {
2895 }
2897 {
2899 try
2900 {
2901 return new RuntimeTypeHandle(
this).Instantiate(
runtimeType);
2902 }
2903 catch (TypeLoadException e)
2904 {
2906 throw;
2907 }
2908 }
2910 bool flag = false;
2913 {
2916 {
2917 throw new ArgumentNullException();
2918 }
2921 {
2923 if (
type.IsSignatureType)
2924 {
2925 flag = true;
2926 }
2927 }
2929 }
2931 {
2932 if (flag)
2933 {
2935 }
2937 }
2939 try
2940 {
2944 }
2945 catch (TypeLoadException
e2)
2946 {
2948 throw;
2949 }
2950 }
static Type MakeGenericType(Type type, Type[] typeArguments)
override bool IsGenericTypeDefinition
RuntimeType[] GetGenericArgumentsInternal()
static void ThrowIfTypeNeverValidGenericArgument(RuntimeType type)
static void SanityCheckGenericArguments(RuntimeType[] genericArguments, RuntimeType[] genericParameters)
static void ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e)
@ InvalidOperationException
References System.RuntimeType.RuntimeType(), System.SR.Arg_NotGenericTypeDefinition, System.SR.Argument_GenericArgsCount, System.array, System.SR.Format(), System.RuntimeType.GetGenericArgumentsInternal(), System.RuntimeTypeHandle.Instantiate(), System.RuntimeType.IsGenericTypeDefinition, System.Reflection.Emit.TypeBuilderInstantiation.MakeGenericType(), System.RuntimeType.SanityCheckGenericArguments(), System.RuntimeType.ThrowIfTypeNeverValidGenericArgument(), System.type, and System.RuntimeType.ValidateGenericArguments().
Referenced by System.RuntimeType.RuntimeTypeCache.MemberInfoCache< T >.PopulateInterfaces().