13 [ComDefaultInterface(typeof(
_Module))]
15 [__DynamicallyInvokable]
29 [__DynamicallyInvokable]
32 [__DynamicallyInvokable]
45 RuntimeModule runtimeModule =
this as RuntimeModule;
46 if (runtimeModule !=
null)
48 return runtimeModule.MDStreamVersion;
57 [__DynamicallyInvokable]
60 [__DynamicallyInvokable]
73 RuntimeModule runtimeModule =
this as RuntimeModule;
74 if (runtimeModule !=
null)
76 return runtimeModule.ModuleVersionId;
88 RuntimeModule runtimeModule =
this as RuntimeModule;
89 if (runtimeModule !=
null)
91 return runtimeModule.MetadataToken;
103 RuntimeModule runtimeModule =
this as RuntimeModule;
104 if (runtimeModule !=
null)
106 return runtimeModule.ScopeName;
114 [__DynamicallyInvokable]
115 public virtual string Name 117 [__DynamicallyInvokable]
120 RuntimeModule runtimeModule =
this as RuntimeModule;
121 if (runtimeModule !=
null)
123 return runtimeModule.Name;
131 [__DynamicallyInvokable]
134 [__DynamicallyInvokable]
137 RuntimeModule runtimeModule =
this as RuntimeModule;
138 if (runtimeModule !=
null)
140 return runtimeModule.Assembly;
152 __Filters _Filters =
new __Filters();
153 __Filters _Filters2 = _Filters;
155 __Filters _Filters3 = _Filters;
164 [__DynamicallyInvokable]
167 if ((
object)left == right)
171 if ((
object)left ==
null || (
object)right ==
null || left is RuntimeModule || right is RuntimeModule)
175 return left.
Equals(right);
183 [__DynamicallyInvokable]
186 return !(left == right);
193 [__DynamicallyInvokable]
196 return base.Equals(o);
201 [__DynamicallyInvokable]
204 return base.GetHashCode();
209 [__DynamicallyInvokable]
282 RuntimeModule runtimeModule =
this as RuntimeModule;
283 if (runtimeModule !=
null)
285 return runtimeModule.ResolveMethod(metadataToken, genericTypeArguments, genericMethodArguments);
315 RuntimeModule runtimeModule =
this as RuntimeModule;
316 if (runtimeModule !=
null)
318 return runtimeModule.ResolveField(metadataToken, genericTypeArguments, genericMethodArguments);
348 RuntimeModule runtimeModule =
this as RuntimeModule;
349 if (runtimeModule !=
null)
351 return runtimeModule.ResolveType(metadataToken, genericTypeArguments, genericMethodArguments);
383 RuntimeModule runtimeModule =
this as RuntimeModule;
384 if (runtimeModule !=
null)
386 return runtimeModule.ResolveMember(metadataToken, genericTypeArguments, genericMethodArguments);
400 RuntimeModule runtimeModule =
this as RuntimeModule;
401 if (runtimeModule !=
null)
403 return runtimeModule.ResolveSignature(metadataToken);
417 RuntimeModule runtimeModule =
this as RuntimeModule;
418 if (runtimeModule !=
null)
420 return runtimeModule.ResolveString(metadataToken);
430 RuntimeModule runtimeModule =
this as RuntimeModule;
431 if (runtimeModule !=
null)
433 runtimeModule.GetPEKind(out peKind, out machine);
469 return GetType(className, throwOnError:
false, ignoreCase);
490 return GetType(className, throwOnError:
false, ignoreCase:
false);
515 [__DynamicallyInvokable]
516 public virtual Type GetType(
string className,
bool throwOnError,
bool ignoreCase)
530 for (
int i = 0; i < types.Length; i++)
532 if (filter !=
null && !filter(types[i], filterCriteria))
541 if (num == types.Length)
547 for (
int j = 0; j < types.Length; j++)
549 if (types[j] !=
null)
551 array[num++] = types[j];
571 RuntimeModule runtimeModule =
this as RuntimeModule;
572 if (runtimeModule !=
null)
574 return runtimeModule.IsResource();
591 RuntimeModule runtimeModule =
this as RuntimeModule;
592 if (runtimeModule !=
null)
594 return runtimeModule.GetFields(bindingFlags);
615 RuntimeModule runtimeModule =
this as RuntimeModule;
616 if (runtimeModule !=
null)
618 return runtimeModule.GetField(name, bindingAttr);
635 RuntimeModule runtimeModule =
this as RuntimeModule;
636 if (runtimeModule !=
null)
638 return runtimeModule.GetMethods(bindingFlags);
663 for (
int i = 0; i < types.Length; i++)
665 if (types[i] ==
null)
670 return GetMethodImpl(name, bindingAttr, binder, callConvention, types, modifiers);
689 for (
int i = 0; i < types.Length; i++)
691 if (types[i] ==
null)
767 throw new NotImplementedException();
780 void _Module.
Invoke(uint dispIdMember, [
In] ref Guid riid, uint lcid,
short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
782 throw new NotImplementedException();
Obtains information about the attributes of a member and provides access to member metadata.
override int GetHashCode()
Returns the hash code for this instance.
virtual int MDStreamVersion
Gets the metadata stream version.
Performs reflection on a module.
FieldInfo [] GetFields()
Returns the global fields defined on the module.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
virtual Guid ModuleVersionId
Gets a universally unique identifier (UUID) that can be used to distinguish between two versions of a...
virtual object [] GetCustomAttributes(bool inherit)
Returns all custom attributes.
Discovers the attributes of a method and provides access to method metadata.
virtual string ScopeName
Gets a string representing the name of the module.
virtual object [] GetCustomAttributes(Type attributeType, bool inherit)
Gets custom attributes of the specified type.
static readonly TypeFilter FilterTypeNameIgnoreCase
A TypeFilter object that filters the list of types defined in this module based upon the name....
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...
ImageFileMachine
Identifies the platform targeted by an executable.
Represents a runtime handle for a module.
virtual string FullyQualifiedName
Gets a string representing the fully qualified name and path to this module.
MethodInfo [] GetMethods()
Returns the global methods defined on the module.
Exposes the enumerator, which supports a simple iteration over a collection of a specified type....
MemberInfo ResolveMember(int metadataToken)
Returns the type or member identified by the specified metadata token.
Describes the source and destination of a given serialized stream, and provides an additional caller-...
virtual Type GetType(string className, bool ignoreCase)
Returns the specified type, searching the module with the specified case sensitivity.
virtual MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Returns the type or member identified by the specified metadata token, in the context defined by the ...
virtual IEnumerable< CustomAttributeData > CustomAttributes
Gets a collection that contains this module's custom attributes.
Attaches a modifier to parameters so that binding can work with parameter signatures in which the typ...
virtual FieldInfo GetField(string name, BindingFlags bindingAttr)
Returns a field having the specified name and binding attributes.
Exposes the T:System.Reflection.Module class to unmanaged code.
CallingConventions
Defines the valid calling conventions for a method.
SecurityAction
Specifies the security actions that can be performed using declarative security.
virtual MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Returns the method implementation in accordance with the specified criteria.
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Provides an T:System.Runtime.Serialization.ISerializable implementation for serialized objects.
override bool Equals(object o)
Determines whether this module and the specified object are equal.
virtual byte [] ResolveSignature(int metadataToken)
Returns the signature blob identified by a metadata token.
Represents a collection that can contain many different types of permissions.
virtual Type [] FindTypes(TypeFilter filter, object filterCriteria)
Returns an array of classes accepted by the given filter and filter criteria.
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.
MethodBase ResolveMethod(int metadataToken)
Returns the method or constructor identified by the specified metadata token.
Type ResolveType(int metadataToken)
Returns the type identified by the specified metadata token.
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
static bool operator !=(Module left, Module right)
Indicates whether two T:System.Reflection.Module objects are not equal.
A platform-specific type that is used to represent a pointer or a handle.
virtual MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Returns the method or constructor identified by the specified metadata token, in the context defined ...
static bool operator==(Module left, Module right)
Indicates whether two T:System.Reflection.Module objects are equal.
Represents type declarations: class types, interface types, array types, value types,...
Provides information about methods and constructors.
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.
virtual MethodInfo [] GetMethods(BindingFlags bindingFlags)
Returns the global methods defined on the module that match the specified binding flags.
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
virtual FieldInfo [] GetFields(BindingFlags bindingFlags)
Returns the global fields defined on the module that match the specified binding flags.
Represents a collection of objects that can be individually accessed by index.
virtual Type GetType(string className, bool throwOnError, bool ignoreCase)
Returns the specified type, specifying whether to make a case-sensitive search of the module and whet...
virtual string ResolveString(int metadataToken)
Returns the string identified by the specified metadata token.
virtual void GetPEKind(out PortableExecutableKinds peKind, out ImageFileMachine machine)
Gets a pair of values indicating the nature of the code in a module and the platform targeted by the ...
virtual int MetadataToken
Gets a token that identifies the module in metadata.
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...
Allows an object to control its own serialization and deserialization.
virtual FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Returns the field identified by the specified metadata token, in the context defined by the specified...
static readonly TypeFilter FilterTypeName
A TypeFilter object that filters the list of types defined in this module based upon the name....
FieldInfo ResolveField(int metadataToken)
Returns the field identified by the specified metadata token.
virtual Type [] GetTypes()
Returns all the types defined within this module.
PortableExecutableKinds
Identifies the nature of the code in an executable file.
Specifies that the class can be serialized.
FieldInfo GetField(string name)
Returns a field having the specified name.
MethodInfo GetMethod(string name, Type[] types)
Returns a method having the specified name and parameter types.
virtual Type GetType(string className)
Returns the specified type, performing a case-sensitive search.
static readonly ModuleHandle EmptyHandle
Represents an empty module handle.
virtual string Name
Gets a String representing the name of the module with the path removed.
MethodInfo GetMethod(string name)
Returns a method having the specified name.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
Specifies that the parameter is an input parameter.
override string ToString()
Returns the name of the module.
virtual bool IsDefined(Type attributeType, bool inherit)
Returns a value that indicates whether the specified attribute type has been applied to this module.
virtual Type ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Returns the type identified by the specified metadata token, in the context defined by the specified ...
virtual X509Certificate GetSignerCertificate()
Returns an X509Certificate object corresponding to the certificate included in the Authenticode signa...
delegate bool TypeFilter(Type m, object filterCriteria)
Filters the classes represented in an array of T:System.Type objects.
The exception that is thrown when a requested method or operation is not implemented.
MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Returns a method having the specified name, binding information, calling convention,...
Provides methods that help you use X.509 v.3 certificates.
virtual IList< CustomAttributeData > GetCustomAttributesData()
Returns a list of T:System.Reflection.CustomAttributeData objects for the current module,...
Provides custom attributes for reflection objects that support them.
virtual bool IsResource()
Gets a value indicating whether the object is a resource.
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).