IKVM.Reflection.Type.MakeGenericType C# (CSharp) Метод

MakeGenericType() публичный Метод

public MakeGenericType ( ) : Type
Результат Type
        public Type MakeGenericType(params Type[] typeArguments)
        {
            return __MakeGenericType(typeArguments, null, null);
        }

Usage Example

Пример #1
0
        internal static FieldInfo GetClassLiteralField(Type type)
        {
            Debug.Assert(type != Types.Void);
            if (classLiteralType == null)
            {
#if STATIC_COMPILER
                classLiteralType = JVM.CoreAssembly.GetType("ikvm.internal.ClassLiteral`1");
#elif !FIRST_PASS
                classLiteralType = typeof([email protected] <>);
#endif
            }
#if !STATIC_COMPILER
            if (!IsTypeBuilder(type))
            {
                return(classLiteralType.MakeGenericType(type).GetField("Value", BindingFlags.Public | BindingFlags.Static));
            }
#endif
            if (classLiteralField == null)
            {
                classLiteralField = classLiteralType.GetField("Value", BindingFlags.Public | BindingFlags.Static);
            }
#if !NOEMIT
            return(TypeBuilder.GetField(classLiteralType.MakeGenericType(type), classLiteralField));
#else
            return(null);
#endif
        }
All Usage Examples Of IKVM.Reflection.Type::MakeGenericType