C# 클래스 Microsoft.Cci.IMetadataReaderHostContract

상속: IMetadataReaderHost
파일 보기 프로젝트 열기: visualmutator/visualmutator

공개 메소드들

메소드 설명
FindAssembly ( Microsoft.Cci.AssemblyIdentity assemblyIdentity ) : IAssembly
FindModule ( Microsoft.Cci.ModuleIdentity moduleIdentity ) : IModule
FindUnit ( Microsoft.Cci.UnitIdentity unitIdentity ) : IUnit
GuessUnderlyingTypeSizeOfUnresolvableReferenceToEnum ( ITypeReference reference ) : byte

Returns a guess of the size of the underlying type of the given type reference to an enum type, which is assumed to be unresolvable because it is defined an assembly that is not loaded into this host. Successive calls to the method will cycle through these values with a periodicity determined by the number of types in the game and the successful guesses made in earlier games.

LoadAssembly ( Microsoft.Cci.AssemblyIdentity assemblyIdentity ) : IAssembly
LoadModule ( Microsoft.Cci.ModuleIdentity moduleIdentity ) : IModule
LoadUnit ( Microsoft.Cci.UnitIdentity unitIdentity ) : IUnit
LoadUnitFrom ( string location ) : IUnit
OpenBinaryDocument ( IBinaryDocument sourceDocument ) : IBinaryDocumentMemoryBlock

Open the binary document as a memory block in host dependent fashion.

OpenBinaryDocument ( IBinaryDocument parentSourceDocument, string childDocumentName ) : IBinaryDocumentMemoryBlock

Open the child binary document within the context of parent source document.as a memory block in host dependent fashion For example: in multimodule assemblies the main module will be parentSourceDocument, where as other modules will be child docuements.

ProbeAssemblyReference ( IUnit referringUnit, Microsoft.Cci.AssemblyIdentity referencedAssembly ) : Microsoft.Cci.AssemblyIdentity
ProbeModuleReference ( IUnit referringUnit, Microsoft.Cci.ModuleIdentity referencedModule ) : Microsoft.Cci.ModuleIdentity
Redirect ( IUnit referringUnit, IEnumerable assemblyReferences ) : IEnumerable

Provides the host with an opportunity to add, remove or substitute assembly references in the given list. This avoids the cost of rewriting the entire unit in order to make such changes.

Redirect ( IUnit referringUnit, INamedTypeReference typeReference ) : INamedTypeReference

Provides the host with an opportunity to substitute one type reference for another during metadata reading. This avoids the cost of rewriting the entire unit in order to make such changes.

ReportError ( IErrorMessage error ) : void
ReportErrors ( ErrorEventArgs errorEventArguments ) : void
ResolvingAssemblyReference ( IUnit referringUnit, Microsoft.Cci.AssemblyIdentity referencedAssembly ) : void

This method is called when the assembly reference is being resolved and its not already loaded by the host.

ResolvingModuleReference ( IUnit referringUnit, Microsoft.Cci.ModuleIdentity referencedModule ) : void

This method is called when the module reference is being resolved and its not already loaded by the host.

Rewrite ( IUnit containingUnit, ICustomAttribute customAttribute ) : ICustomAttribute

Provides the host with an opportunity to substitute a custom attribute with another during metadata reading. This avoids the cost of rewriting the entire unit in order to make such changes.

Rewrite ( IUnit containingUnit, IMethodDefinition methodDefinition ) : IMethodDefinition

Provides the host with an opportunity to substitute one method definition for another during metadata reading. This avoids the cost of rewriting the entire unit in order to make such changes.

StartGuessingGame ( ) : void

Called by the metadata reader when it is about to start parsing a custom attribute blob.

TryNextPermutation ( ) : bool

Called by the metadata reader when it has unsucessfully tried to parse a custom attribute blob and it now needs to try a new permutation. Returns false if no more perumations are possible.

UnifyAssembly ( Microsoft.Cci.AssemblyIdentity assemblyIdentity ) : Microsoft.Cci.AssemblyIdentity
UnifyAssembly ( IAssemblyReference assemblyReference ) : Microsoft.Cci.AssemblyIdentity
WinGuessingGame ( ) : void

Called by the metadata reader when it has successfully parsed a custom attribute blob.

메소드 상세

FindAssembly() 공개 메소드

public FindAssembly ( Microsoft.Cci.AssemblyIdentity assemblyIdentity ) : IAssembly
assemblyIdentity Microsoft.Cci.AssemblyIdentity
리턴 IAssembly

FindModule() 공개 메소드

public FindModule ( Microsoft.Cci.ModuleIdentity moduleIdentity ) : IModule
moduleIdentity Microsoft.Cci.ModuleIdentity
리턴 IModule

FindUnit() 공개 메소드

public FindUnit ( Microsoft.Cci.UnitIdentity unitIdentity ) : IUnit
unitIdentity Microsoft.Cci.UnitIdentity
리턴 IUnit

GuessUnderlyingTypeSizeOfUnresolvableReferenceToEnum() 공개 메소드

Returns a guess of the size of the underlying type of the given type reference to an enum type, which is assumed to be unresolvable because it is defined an assembly that is not loaded into this host. Successive calls to the method will cycle through these values with a periodicity determined by the number of types in the game and the successful guesses made in earlier games.
public GuessUnderlyingTypeSizeOfUnresolvableReferenceToEnum ( ITypeReference reference ) : byte
reference ITypeReference A type reference that cannot be resolved.
리턴 byte

LoadAssembly() 공개 메소드

public LoadAssembly ( Microsoft.Cci.AssemblyIdentity assemblyIdentity ) : IAssembly
assemblyIdentity Microsoft.Cci.AssemblyIdentity
리턴 IAssembly

LoadModule() 공개 메소드

public LoadModule ( Microsoft.Cci.ModuleIdentity moduleIdentity ) : IModule
moduleIdentity Microsoft.Cci.ModuleIdentity
리턴 IModule

LoadUnit() 공개 메소드

public LoadUnit ( Microsoft.Cci.UnitIdentity unitIdentity ) : IUnit
unitIdentity Microsoft.Cci.UnitIdentity
리턴 IUnit

LoadUnitFrom() 공개 메소드

public LoadUnitFrom ( string location ) : IUnit
location string
리턴 IUnit

OpenBinaryDocument() 공개 메소드

Open the binary document as a memory block in host dependent fashion.
public OpenBinaryDocument ( IBinaryDocument sourceDocument ) : IBinaryDocumentMemoryBlock
sourceDocument IBinaryDocument The binary document that is to be opened.
리턴 IBinaryDocumentMemoryBlock

OpenBinaryDocument() 공개 메소드

Open the child binary document within the context of parent source document.as a memory block in host dependent fashion For example: in multimodule assemblies the main module will be parentSourceDocument, where as other modules will be child docuements.
public OpenBinaryDocument ( IBinaryDocument parentSourceDocument, string childDocumentName ) : IBinaryDocumentMemoryBlock
parentSourceDocument IBinaryDocument The source document indicating the child document location.
childDocumentName string The name of the child document.
리턴 IBinaryDocumentMemoryBlock

ProbeAssemblyReference() 공개 메소드

public ProbeAssemblyReference ( IUnit referringUnit, Microsoft.Cci.AssemblyIdentity referencedAssembly ) : Microsoft.Cci.AssemblyIdentity
referringUnit IUnit
referencedAssembly Microsoft.Cci.AssemblyIdentity
리턴 Microsoft.Cci.AssemblyIdentity

ProbeModuleReference() 공개 메소드

public ProbeModuleReference ( IUnit referringUnit, Microsoft.Cci.ModuleIdentity referencedModule ) : Microsoft.Cci.ModuleIdentity
referringUnit IUnit
referencedModule Microsoft.Cci.ModuleIdentity
리턴 Microsoft.Cci.ModuleIdentity

Redirect() 공개 메소드

Provides the host with an opportunity to add, remove or substitute assembly references in the given list. This avoids the cost of rewriting the entire unit in order to make such changes.
public Redirect ( IUnit referringUnit, IEnumerable assemblyReferences ) : IEnumerable
referringUnit IUnit The unit that contains these references.
assemblyReferences IEnumerable The assembly references to substitute.
리턴 IEnumerable

Redirect() 공개 메소드

Provides the host with an opportunity to substitute one type reference for another during metadata reading. This avoids the cost of rewriting the entire unit in order to make such changes.
public Redirect ( IUnit referringUnit, INamedTypeReference typeReference ) : INamedTypeReference
referringUnit IUnit The unit that contains the reference.
typeReference INamedTypeReference A named type reference encountered during metadata reading.
리턴 INamedTypeReference

ReportError() 공개 메소드

public ReportError ( IErrorMessage error ) : void
error IErrorMessage
리턴 void

ReportErrors() 공개 메소드

public ReportErrors ( ErrorEventArgs errorEventArguments ) : void
errorEventArguments System.IO.ErrorEventArgs
리턴 void

ResolvingAssemblyReference() 공개 메소드

This method is called when the assembly reference is being resolved and its not already loaded by the host.
public ResolvingAssemblyReference ( IUnit referringUnit, Microsoft.Cci.AssemblyIdentity referencedAssembly ) : void
referringUnit IUnit The unit that is referencing the assembly.
referencedAssembly Microsoft.Cci.AssemblyIdentity Assembly identifier for the assembly being referenced.
리턴 void

ResolvingModuleReference() 공개 메소드

This method is called when the module reference is being resolved and its not already loaded by the host.
public ResolvingModuleReference ( IUnit referringUnit, Microsoft.Cci.ModuleIdentity referencedModule ) : void
referringUnit IUnit The unit that is referencing the module.
referencedModule Microsoft.Cci.ModuleIdentity Module identifier for the assembly being referenced.
리턴 void

Rewrite() 공개 메소드

Provides the host with an opportunity to substitute a custom attribute with another during metadata reading. This avoids the cost of rewriting the entire unit in order to make such changes.
public Rewrite ( IUnit containingUnit, ICustomAttribute customAttribute ) : ICustomAttribute
containingUnit IUnit The unit that contains the custom attribute.
customAttribute ICustomAttribute The custom attribute to rewrite (fix up).
리턴 ICustomAttribute

Rewrite() 공개 메소드

Provides the host with an opportunity to substitute one method definition for another during metadata reading. This avoids the cost of rewriting the entire unit in order to make such changes.
public Rewrite ( IUnit containingUnit, IMethodDefinition methodDefinition ) : IMethodDefinition
containingUnit IUnit The unit that is defines the method.
methodDefinition IMethodDefinition A method definition encountered during metadata reading.
리턴 IMethodDefinition

StartGuessingGame() 공개 메소드

Called by the metadata reader when it is about to start parsing a custom attribute blob.
public StartGuessingGame ( ) : void
리턴 void

TryNextPermutation() 공개 메소드

Called by the metadata reader when it has unsucessfully tried to parse a custom attribute blob and it now needs to try a new permutation. Returns false if no more perumations are possible.
public TryNextPermutation ( ) : bool
리턴 bool

UnifyAssembly() 공개 메소드

public UnifyAssembly ( Microsoft.Cci.AssemblyIdentity assemblyIdentity ) : Microsoft.Cci.AssemblyIdentity
assemblyIdentity Microsoft.Cci.AssemblyIdentity
리턴 Microsoft.Cci.AssemblyIdentity

UnifyAssembly() 공개 메소드

public UnifyAssembly ( IAssemblyReference assemblyReference ) : Microsoft.Cci.AssemblyIdentity
assemblyReference IAssemblyReference
리턴 Microsoft.Cci.AssemblyIdentity

WinGuessingGame() 공개 메소드

Called by the metadata reader when it has successfully parsed a custom attribute blob.
public WinGuessingGame ( ) : void
리턴 void