Class ModuleIntrospectionProviderExtensions
Provides a set of extension methods for IModuleIntrospectionProvider.
Inheritance
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public static class ModuleIntrospectionProviderExtensions : Object
  Methods
GetField(IModuleIntrospectionProvider, Module, String)
Returns a field having the specified name.
Declaration
public static FieldInfo GetField(this IModuleIntrospectionProvider provider, Module module, string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to search in.  | 
      
| System.String | name | The field name.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.FieldInfo | A System.Reflection.FieldInfo object having the specified name, or null if the field does not exist.  | 
      
GetFields(IModuleIntrospectionProvider, Module)
Returns the global fields defined on the module.
Declaration
public static IReadOnlyList<FieldInfo> GetFields(this IModuleIntrospectionProvider provider, Module module)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to search in.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IReadOnlyList<System.Reflection.FieldInfo> | An array of System.Reflection.FieldInfo objects representing the global fields defined on the module; if there are no global fields, an empty array is returned.  | 
      
GetMethod(IModuleIntrospectionProvider, Module, String)
Returns a method having the specified name.
Declaration
public static MethodInfo GetMethod(this IModuleIntrospectionProvider provider, Module module, string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to search in.  | 
      
| System.String | name | The method name.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MethodInfo | A System.Reflection.MethodInfo object having the specified name, or null if the method does not exist.  | 
      
GetMethod(IModuleIntrospectionProvider, Module, String, Type[])
Returns a method having the specified name and parameter types.
Declaration
public static MethodInfo GetMethod(this IModuleIntrospectionProvider provider, Module module, string name, Type[] types)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to search in.  | 
      
| System.String | name | The method name.  | 
      
| System.Type[] | types | The parameter types to search for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MethodInfo | A System.Reflection.MethodInfo object in accordance with the specified criteria, or null if the method does not exist.  | 
      
GetMethods(IModuleIntrospectionProvider, Module)
Returns the global methods defined on the module.
Declaration
public static IReadOnlyList<MethodInfo> GetMethods(this IModuleIntrospectionProvider provider, Module module)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to search in.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IReadOnlyList<System.Reflection.MethodInfo> | An array of System.Reflection.MethodInfo objects representing all the global methods defined on the module; if there are no global methods, an empty array is returned.  | 
      
GetType(IModuleIntrospectionProvider, Module, String)
Returns the specified type, performing a case-sensitive search.
Declaration
public static Type GetType(this IModuleIntrospectionProvider provider, Module module, string className)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to search in.  | 
      
| System.String | className | The name of the type to locate. The name must be fully qualified with the namespace.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A System.Type object representing the given type, if the type is in this module; otherwise, null.  | 
      
GetType(IModuleIntrospectionProvider, Module, String, Boolean)
Returns the specified type, searching the module with the specified case sensitivity.
Declaration
public static Type GetType(this IModuleIntrospectionProvider provider, Module module, string className, bool ignoreCase)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to search in.  | 
      
| System.String | className | The name of the type to locate. The name must be fully qualified with the namespace.  | 
      
| System.Boolean | ignoreCase | true for case-insensitive search; otherwise, false.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A System.Type object representing the given type, if the type is in this module; otherwise, null.  | 
      
ResolveField(IModuleIntrospectionProvider, Module, Int32)
Returns the field identified by the specified metadata token.
Declaration
public static FieldInfo ResolveField(this IModuleIntrospectionProvider provider, Module module, int metadataToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to resolve the metadata token in.  | 
      
| System.Int32 | metadataToken | A metadata token that identifies a field in the module.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.FieldInfo | A System.Reflection.FieldInfo object representing the field that is identified by the specified metadata token.  | 
      
ResolveMember(IModuleIntrospectionProvider, Module, Int32)
Returns the type or member identified by the specified metadata token.
Declaration
public static MemberInfo ResolveMember(this IModuleIntrospectionProvider provider, Module module, int metadataToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to resolve the metadata token in.  | 
      
| System.Int32 | metadataToken | A metadata token that identifies a type or member in the module.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MemberInfo | A System.Reflection.MemberInfo object representing the type or member that is identified by the specified metadata token.  | 
      
ResolveMethod(IModuleIntrospectionProvider, Module, Int32)
Returns the method or constructor identified by the specified metadata token.
Declaration
public static MethodBase ResolveMethod(this IModuleIntrospectionProvider provider, Module module, int metadataToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to resolve the metadata token in.  | 
      
| System.Int32 | metadataToken | A metadata token that identifies a method or constructor in the module.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.MethodBase | A System.Reflection.MethodBase object representing the method or constructor that is identified by the specified metadata token.  | 
      
ResolveType(IModuleIntrospectionProvider, Module, Int32)
Returns the type identified by the specified metadata token.
Declaration
public static Type ResolveType(this IModuleIntrospectionProvider provider, Module module, int metadataToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IModuleIntrospectionProvider | provider | The reflection introspection provider.  | 
      
| System.Reflection.Module | module | The module to resolve the metadata token in.  | 
      
| System.Int32 | metadataToken | A metadata token that identifies a type in the module.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A System.Type object representing the type that is identified by the specified metadata token.  |