C# Class System.Reflection.Module

Inheritance: System.Reflection.ICustomAttributeProvider
Datei anzeigen Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Properties

Property Type Description
FilterTypeName TypeFilter
FilterTypeNameIgnoreCase TypeFilter

Private Properties

Property Type Description
ConvertToTypeHandleArray RuntimeTypeHandle[]
GetAssemblyInternal Assembly
GetHINSTANCE IntPtr
GetModuleHandle ModuleHandle
GetObjectData void
GetType Type
GetType Type
GetType Type
GetTypeInternal Type
GetTypesInternal Type[]
InternalAddResource void
InternalGetField FieldInfo
InternalGetFullyQualifiedName String
InternalGetMemberRef int
InternalGetMemberRefFromSignature int
InternalGetMemberRefOfFieldInfo int
InternalGetMemberRefOfMethodInfo int
InternalGetName String
InternalGetStringConstant int
InternalGetTypeSpecTokenWithBytes int
InternalGetTypeToken int
InternalLoadInMemoryTypeByName Type
InternalPreSavePEFile void
InternalSavePEFile void
InternalSetFieldRVAContent void
InternalSetModuleProps void
InternalSetResourceCounts void
IsDynamic bool
IsResourceInternal bool
Module System
ResolveLiteralField FieldInfo
_InternalGetMemberRefOfFieldInfo int
_InternalGetMemberRefOfMethodInfo int
_InternalSavePEFile void
_Module void
_Module void
_Module void
_Module void
nativeGetArrayMethodToken int

Public Methods

Method Description
FindTypes ( TypeFilter filter, Object filterCriteria ) : Type[]
GetCustomAttributes ( Type attributeType, bool inherit ) : Object[]
GetCustomAttributes ( bool inherit ) : Object[]
GetField ( String name ) : FieldInfo
GetField ( String name, BindingFlags bindingAttr ) : FieldInfo
GetFields ( ) : System.Reflection.FieldInfo[]
GetFields ( BindingFlags bindingFlags ) : System.Reflection.FieldInfo[]
GetMethod ( String name ) : MethodInfo
GetMethod ( String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type types, ParameterModifier modifiers ) : MethodInfo
GetMethod ( String name, Type types ) : MethodInfo
GetMethods ( ) : System.Reflection.MethodInfo[]
GetMethods ( BindingFlags bindingFlags ) : System.Reflection.MethodInfo[]
GetPEKind ( PortableExecutableKinds &peKind, ImageFileMachine &machine ) : void
GetTypes ( ) : Type[]
IsDefined ( Type attributeType, bool inherit ) : bool
IsResource ( ) : bool
ResolveField ( int metadataToken ) : FieldInfo
ResolveField ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : FieldInfo
ResolveMember ( int metadataToken ) : MemberInfo
ResolveMember ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : MemberInfo
ResolveMethod ( int metadataToken ) : MethodBase
ResolveMethod ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : MethodBase
ResolveSignature ( int metadataToken ) : byte[]
ResolveString ( int metadataToken ) : string
ResolveType ( int metadataToken ) : Type
ResolveType ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : Type
ToString ( ) : String

Protected Methods

Method Description
GetMethodImpl ( String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type types, ParameterModifier modifiers ) : MethodInfo

Private Methods

Method Description
ConvertToTypeHandleArray ( Type genericArguments ) : RuntimeTypeHandle[]
GetAssemblyInternal ( ) : Assembly
GetHINSTANCE ( ) : IntPtr
GetModuleHandle ( ) : ModuleHandle
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
GetType ( String className ) : Type
GetType ( String className, bool ignoreCase ) : Type
GetType ( String className, bool throwOnError, bool ignoreCase ) : Type
GetTypeInternal ( String className, bool ignoreCase, bool throwOnError ) : Type
GetTypesInternal ( StackCrawlMark &stackMark ) : Type[]
InternalAddResource ( String strName, byte resBytes, int resByteCount, int tkFile, int attribute, int portableExecutableKind, int imageFileMachine ) : void
InternalGetField ( String name, BindingFlags bindingAttr ) : FieldInfo
InternalGetFullyQualifiedName ( ) : String
InternalGetMemberRef ( Module refedModule, int tr, int defToken ) : int
InternalGetMemberRefFromSignature ( int tr, String methodName, byte signature, int length ) : int
InternalGetMemberRefOfFieldInfo ( int tkType, RuntimeTypeHandle declaringType, int tkField ) : int
InternalGetMemberRefOfMethodInfo ( int tr, RuntimeMethodHandle method ) : int
InternalGetName ( ) : String
InternalGetStringConstant ( String str ) : int
InternalGetTypeSpecTokenWithBytes ( byte signature, int length ) : int
InternalGetTypeToken ( String strFullName, Module refedModule, String strRefedModuleFileName, int tkResolution ) : int
InternalLoadInMemoryTypeByName ( String className ) : Type
InternalPreSavePEFile ( int portableExecutableKind, int imageFileMachine ) : void
InternalSavePEFile ( String fileName, MethodToken entryPoint, int isExe, bool isManifestFile ) : void
InternalSetFieldRVAContent ( int fdToken, byte data, int length ) : void
InternalSetModuleProps ( String strModuleName ) : void
InternalSetResourceCounts ( int resCount ) : void
IsDynamic ( ) : bool
IsResourceInternal ( ) : bool
Module ( ) : System
ResolveLiteralField ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : FieldInfo
_InternalGetMemberRefOfFieldInfo ( int tkType, IntPtr interfaceHandle, int tkField ) : int
_InternalGetMemberRefOfMethodInfo ( int tr, IntPtr method ) : int
_InternalSavePEFile ( String fileName, int entryPoint, int isExe, bool isManifestFile ) : void
_Module ( [ riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId ) : void
_Module ( uint &pcTInfo ) : void
_Module ( uint dispIdMember, [ riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr ) : void
_Module ( uint iTInfo, uint lcid, IntPtr ppTInfo ) : void
nativeGetArrayMethodToken ( int tkTypeSpec, String methodName, byte signature, int sigLength, int baseToken ) : int

Method Details

FindTypes() public method

public FindTypes ( TypeFilter filter, Object filterCriteria ) : Type[]
filter TypeFilter
filterCriteria Object
return Type[]

GetCustomAttributes() public method

public GetCustomAttributes ( Type attributeType, bool inherit ) : Object[]
attributeType Type
inherit bool
return Object[]

GetCustomAttributes() public method

public GetCustomAttributes ( bool inherit ) : Object[]
inherit bool
return Object[]

GetField() public method

public GetField ( String name ) : FieldInfo
name String
return FieldInfo

GetField() public method

public GetField ( String name, BindingFlags bindingAttr ) : FieldInfo
name String
bindingAttr BindingFlags
return FieldInfo

GetFields() public method

public GetFields ( ) : System.Reflection.FieldInfo[]
return System.Reflection.FieldInfo[]

GetFields() public method

public GetFields ( BindingFlags bindingFlags ) : System.Reflection.FieldInfo[]
bindingFlags BindingFlags
return System.Reflection.FieldInfo[]

GetMethod() public method

public GetMethod ( String name ) : MethodInfo
name String
return MethodInfo

GetMethod() public method

public GetMethod ( String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type types, ParameterModifier modifiers ) : MethodInfo
name String
bindingAttr BindingFlags
binder Binder
callConvention CallingConventions
types Type
modifiers ParameterModifier
return MethodInfo

GetMethod() public method

public GetMethod ( String name, Type types ) : MethodInfo
name String
types Type
return MethodInfo

GetMethodImpl() protected method

protected GetMethodImpl ( String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type types, ParameterModifier modifiers ) : MethodInfo
name String
bindingAttr BindingFlags
binder Binder
callConvention CallingConventions
types Type
modifiers ParameterModifier
return MethodInfo

GetMethods() public method

public GetMethods ( ) : System.Reflection.MethodInfo[]
return System.Reflection.MethodInfo[]

GetMethods() public method

public GetMethods ( BindingFlags bindingFlags ) : System.Reflection.MethodInfo[]
bindingFlags BindingFlags
return System.Reflection.MethodInfo[]

GetPEKind() public method

public GetPEKind ( PortableExecutableKinds &peKind, ImageFileMachine &machine ) : void
peKind PortableExecutableKinds
machine ImageFileMachine
return void

GetTypes() public method

public GetTypes ( ) : Type[]
return Type[]

IsDefined() public method

public IsDefined ( Type attributeType, bool inherit ) : bool
attributeType Type
inherit bool
return bool

IsResource() public method

public IsResource ( ) : bool
return bool

ResolveField() public method

public ResolveField ( int metadataToken ) : FieldInfo
metadataToken int
return FieldInfo

ResolveField() public method

public ResolveField ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : FieldInfo
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return FieldInfo

ResolveMember() public method

public ResolveMember ( int metadataToken ) : MemberInfo
metadataToken int
return MemberInfo

ResolveMember() public method

public ResolveMember ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : MemberInfo
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return MemberInfo

ResolveMethod() public method

public ResolveMethod ( int metadataToken ) : MethodBase
metadataToken int
return MethodBase

ResolveMethod() public method

public ResolveMethod ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : MethodBase
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return MethodBase

ResolveSignature() public method

public ResolveSignature ( int metadataToken ) : byte[]
metadataToken int
return byte[]

ResolveString() public method

public ResolveString ( int metadataToken ) : string
metadataToken int
return string

ResolveType() public method

public ResolveType ( int metadataToken ) : Type
metadataToken int
return Type

ResolveType() public method

public ResolveType ( int metadataToken, Type genericTypeArguments, Type genericMethodArguments ) : Type
metadataToken int
genericTypeArguments Type
genericMethodArguments Type
return Type

ToString() public method

public ToString ( ) : String
return String

Property Details

FilterTypeName public_oe static_oe property

public static TypeFilter FilterTypeName
return TypeFilter

FilterTypeNameIgnoreCase public_oe static_oe property

public static TypeFilter FilterTypeNameIgnoreCase
return TypeFilter