namespace System.Reflection.Emit {
public sealed class AssemblyBuilder : Assembly {
public override string? CodeBase { get; }
public static AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access);
public static AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, IEnumerable<CustomAttributeBuilder>? assemblyAttributes);
}
public sealed class DynamicMethod : MethodInfo {
public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, Module m, bool skipVisibility);
public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, Type owner, bool skipVisibility);
public DynamicMethod(string name, Type? returnType, Type[]? parameterTypes);
public DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, bool restrictedSkipVisibility);
public DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Module m);
public DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Module m, bool skipVisibility);
public DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Type owner);
public DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Type owner, bool skipVisibility);
}
public sealed class EnumBuilder : TypeInfo {
- public Type? CreateType();
+ public Type CreateType();
- public TypeInfo? CreateTypeInfo();
+ public TypeInfo CreateTypeInfo();
public override Type MakeArrayType();
public override Type MakeArrayType(int rank);
}
public sealed class GenericTypeParameterBuilder : TypeInfo {
public override Type MakeArrayType();
public override Type MakeArrayType(int rank);
public override Type MakeGenericType(params Type[] typeArguments);
}
public class ILGenerator {
- public virtual void BeginCatchBlock(Type exceptionType);
+ public virtual void BeginCatchBlock(Type? exceptionType);
}
public sealed class MethodBuilder : MethodInfo {
public override MethodInfo MakeGenericMethod(params Type[] typeArguments);
}
public class ModuleBuilder : Module {
public override string FullyQualifiedName { get; }
public override string Name { get; }
}
public sealed class TypeBuilder : TypeInfo {
- public Type? CreateType();
+ public Type CreateType();
- public TypeInfo? CreateTypeInfo();
+ public TypeInfo CreateTypeInfo();
public override Type MakeArrayType();
public override Type MakeArrayType(int rank);
public override Type MakeGenericType(params Type[] typeArguments);
}
}