29 public override string Name => m_typeBuilder.Name;
34 public override Guid GUID => m_typeBuilder.GUID;
51 public override string FullName => m_typeBuilder.FullName;
59 public override string Namespace => m_typeBuilder.Namespace;
82 internal int MetadataTokenInternal => m_typeBuilder.MetadataTokenInternal;
112 return m_typeBuilder.CreateTypeInfo();
120 return m_typeBuilder.CreateType();
136 return m_typeBuilder.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters);
141 return m_typeBuilder.GetConstructor(bindingAttr, binder, callConvention, types, modifiers);
151 return m_typeBuilder.GetConstructors(bindingAttr);
158 return m_typeBuilder.GetMethod(name, bindingAttr);
160 return m_typeBuilder.GetMethod(name, bindingAttr, binder, callConvention, types, modifiers);
169 return m_typeBuilder.GetMethods(bindingAttr);
179 return m_typeBuilder.GetField(name, bindingAttr);
188 return m_typeBuilder.GetFields(bindingAttr);
215 return m_typeBuilder.GetEvent(name, bindingAttr);
223 return m_typeBuilder.GetEvents();
237 return m_typeBuilder.GetProperties(bindingAttr);
267 return m_typeBuilder.GetMember(name, type, bindingAttr);
276 return m_typeBuilder.GetMembers(bindingAttr);
286 return m_typeBuilder.GetInterfaceMap(interfaceType);
295 return m_typeBuilder.GetEvents(bindingAttr);
300 return m_typeBuilder.Attributes;
343 return m_typeBuilder.HasElementType;
359 return m_typeBuilder.GetCustomAttributes(inherit);
369 return m_typeBuilder.GetCustomAttributes(attributeType, inherit);
380 m_typeBuilder.SetCustomAttribute(con, binaryAttribute);
389 m_typeBuilder.SetCustomAttribute(customBuilder);
400 return m_typeBuilder.IsDefined(attributeType, inherit);
411 return SymbolType.FormCompoundType(
"*".ToCharArray(),
this, 0);
418 return SymbolType.FormCompoundType(
"&".ToCharArray(),
this, 0);
425 return SymbolType.FormCompoundType(
"[]".ToCharArray(),
this, 0);
446 for (
int i = 1; i < rank; i++)
452 return SymbolType.FormCompoundType(text2.ToCharArray(),
this, 0);
481 throw new NotImplementedException();
493 throw new NotImplementedException();
506 void _EnumBuilder.
Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid,
short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
508 throw new NotImplementedException();
Obtains information about the attributes of a member and provides access to member metadata.
abstract Type BaseType
Gets the type from which the current T:System.Type directly inherits.
Performs reflection on a module.
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
override bool IsPrimitiveImpl()
When overridden in a derived class, implements the P:System.Type.IsPrimitive property and determines ...
override Type UnderlyingSystemType
Returns the underlying system type for this enum.
Type [] GetNestedTypes()
Returns the public types nested in the current T:System.Type.
Describes and represents an enumeration type.
abstract Type GetElementType()
When overridden in a derived class, returns the T:System.Type of the object encompassed or referred t...
Type GetInterface(string name)
Searches for the interface with the specified name.
override Type ReflectedType
Gets the class object that was used to obtain this member.
override bool IsDefined(Type attributeType, bool inherit)
Checks if the specified custom attribute type is defined.
Discovers the attributes of a method and provides access to method metadata.
override Type DeclaringType
Returns the type that declared this T:System.Reflection.Emit.EnumBuilder.
override string AssemblyQualifiedName
Returns the full path of this enum qualified by the display name of the parent assembly.
override RuntimeTypeHandle TypeHandle
Retrieves the internal handle for this enum.
Discovers the attributes of a class constructor and provides access to constructor metadata.
void SetCustomAttribute(CustomAttributeBuilder customBuilder)
Sets a custom attribute using a custom attribute builder.
Discovers the attributes of a field and provides access to field metadata.
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
Type GetNestedType(string name)
Searches for the public nested type with the specified name.
override Type GetElementType()
Calling this method always throws T:System.NotSupportedException.
override MethodInfo [] GetMethods(BindingFlags bindingAttr)
Returns all the public and non-public methods declared or inherited by this type, as specified.
Type CreateType()
Creates a T:System.Type object for this enum.
override bool IsAssignableFrom(TypeInfo typeInfo)
Gets a value that indicates whether a specified T:System.Reflection.TypeInfo object can be assigned t...
Represents a type using an internal metadata token.
override Type DeclaringType
Gets the type that declares the current nested type or generic type parameter.
override bool IsConstructedGenericType
Gets a value that indicates whether this object represents a constructed generic type.
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
Retrieves the type information for an object, which can be used to get the type information for an in...
override bool HasElementTypeImpl()
When overridden in a derived class, implements the P:System.Type.HasElementType property and determin...
Helps build custom attributes.
override string FullName
Returns the full path of this enum.
Represents type declarations for class types, interface types, array types, value types,...
Attaches a modifier to parameters so that binding can work with parameter signatures in which the typ...
override FieldInfo [] GetFields(BindingFlags bindingAttr)
Returns the public and non-public fields that are declared by this type.
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Defines and represents a field. This class cannot be inherited.
override object [] GetCustomAttributes(Type attributeType, bool inherit)
Returns the custom attributes identified by the given type.
override bool IsCOMObjectImpl()
When overridden in a derived class, implements the P:System.Type.IsCOMObject property and determines ...
override bool IsArrayImpl()
When overridden in a derived class, implements the P:System.Type.IsArray property and determines whet...
CallingConventions
Defines the valid calling conventions for a method.
SecurityAction
Specifies the security actions that can be performed using declarative security.
override Type ReflectedType
Returns the type that was used to obtain this T:System.Reflection.Emit.EnumBuilder.
Provides information about, and means to manipulate, the current environment and platform....
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
override Guid GUID
Returns the GUID of this enum.
override bool IsPointerImpl()
When overridden in a derived class, implements the P:System.Type.IsPointer property and determines wh...
override Type GetInterface(string name, bool ignoreCase)
Returns the interface implemented (directly or indirectly) by this type, with the specified fully-qua...
override Type MakeByRefType()
Returns a T:System.Type object that represents the current type when passed as a ref parameter (ByRef...
The exception that is thrown when an attempt is made to access an element of an array or collection w...
override FieldInfo GetField(string name, BindingFlags bindingAttr)
Returns the field specified by the given name.
Defines and creates new instances of classes during run time.
override MemberInfo [] GetMembers(BindingFlags bindingAttr)
Returns the specified members declared or inherited by this type,.
Provides the base class for enumerations.
PackingSize
Specifies one of two factors that determine the memory alignment of fields when a type is marshaled.
Defines and represents a module in a dynamic assembly.
FieldAttributes
Specifies flags that describe the attributes of a field.
FieldBuilder DefineLiteral(string literalName, object literalValue)
Defines the named static field in an enumeration type with the specified constant value.
Retrieves the mapping of an interface into the actual methods on a class that implements that interfa...
virtual Type AsType()
Returns the current type as a T:System.Type object.
override Type BaseType
Returns the parent T:System.Type of this type which is always T:System.Enum.
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Discovers the attributes of an event and provides access to event metadata.
override EventInfo GetEvent(string name, BindingFlags bindingAttr)
Returns the event with the specified name.
TypeInfo CreateTypeInfo()
Gets a T:System.Reflection.TypeInfo object that represents this enumeration.
Represents the Token returned by the metadata to represent a type.
Represents type declarations: class types, interface types, array types, value types,...
override bool IsValueTypeImpl()
Implements the P:System.Type.IsValueType property and determines whether the T:System....
override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
When overridden in a derived class, searches for a constructor whose parameters match the specified a...
override Type GetEnumUnderlyingType()
Returns the underlying integer type of the current enumeration, which is set when the enumeration bui...
override Type MakeArrayType(int rank)
Returns a T:System.Type object representing an array of the current type, with the specified number o...
abstract Type [] GetInterfaces()
When overridden in a derived class, gets all the interfaces implemented or inherited by the current T...
FieldBuilder UnderlyingField
Returns the underlying field for this enum.
override Type [] GetInterfaces()
Returns an array of all the interfaces implemented on this a class and its base classes.
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
TypeAttributes
Specifies type attributes.
override InterfaceMapping GetInterfaceMap(Type interfaceType)
Returns an interface mapping for the interface requested.
override string Name
Returns the name of this enum.
Discovers the attributes of a property and provides access to property metadata.
override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
When overridden in a derived class, searches for the specified property whose parameters match the sp...
void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
Sets a custom attribute using a specified custom attribute blob.
The exception that is thrown when one of the arguments provided to a method is not valid.
Exposes the T:System.Reflection.Emit.EnumBuilder class to unmanaged code.
override string Namespace
Returns the namespace of this enum.
override object [] GetCustomAttributes(bool inherit)
Returns all the custom attributes defined for this constructor.
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
Provides access to properties and methods exposed by an object.
override Type MakePointerType()
Returns a T:System.Type object that represents a pointer to the current type.
void SetConstant(object defaultValue)
Sets the default value of this field.
override ConstructorInfo [] GetConstructors(BindingFlags bindingAttr)
Returns an array of T:System.Reflection.ConstructorInfo objects representing the public and non-publi...
override EventInfo [] GetEvents()
Returns the events for the public events declared or inherited by this type.
override bool IsByRefImpl()
When overridden in a derived class, implements the P:System.Type.IsByRef property and determines whet...
override MemberInfo [] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
Returns all members with the specified name, type, and binding that are declared or inherited by this...
override Type FieldType
Indicates the T:System.Type object that represents the type of this field. This property is read-only...
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
override PropertyInfo [] GetProperties(BindingFlags bindingAttr)
Returns all the public and non-public properties declared or inherited by this type,...
Provides information about a specific culture (called a locale for unmanaged code development)....
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
Maps a set of names to a corresponding set of dispatch identifiers.
MemberTypes
Marks each type of member that is defined as a derived class of T:System.Reflection....
override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
Invokes the specified member. The method that is to be invoked must be accessible and provide the mos...
override Type [] GetNestedTypes(BindingFlags bindingAttr)
Returns the public and non-public nested types that are declared or inherited by this type.
The exception that is thrown when a requested method or operation is not implemented.
override Type MakeArrayType()
Returns a T:System.Type object representing a one-dimensional array of the current type,...
override EventInfo [] GetEvents(BindingFlags bindingAttr)
Returns the public and non-public events that are declared by this type.
override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
When overridden in a derived class, searches for the specified method whose parameters match the spec...
override TypeAttributes GetAttributeFlagsImpl()
When overridden in a derived class, implements the P:System.Type.Attributes property and gets a bitma...
override Type GetNestedType(string name, BindingFlags bindingAttr)
Returns the specified nested type that is declared by this type.