C# Class Microsoft.Cci.CopiedLocalScopeProvider

A local scope provider that can be used together with an object model that is a deep copy made by MetadataDeepCopier. It ensures that all metadata definitions obtained from the original ILocalScopeProvider have been mapped to their copies and does the reverse map before passing queries along to the original ILocalScopeProvider.
Inheritance: ILocalScopeProvider
显示文件 Open project: visualmutator/visualmutator

Public Methods

Method Description
CopiedLocalScopeProvider ( object>.Hashtable mapFromCopyToOriginal, object>.Hashtable mapFromOriginalToCopy, ILocalScopeProvider providerForOriginal ) : System

A local scope provider that can be used together with an object model that is a deep copy made by MetadataDeepCopier. It ensures that all metadata definitions obtained from the original ILocalScopeProvider have been mapped to their copies and does the reverse map before passing queries along to the original ILocalScopeProvider.

Private Methods

Method Description
GetCorrespondingLocal ( ILocalDefinition originalLocalDef ) : ILocalDefinition
ILocalScopeProvider ( ILocalScope scope ) : IEnumerable
ILocalScopeProvider ( IMethodBody methodBody ) : IEnumerable
ILocalScopeProvider ( IMethodBody methodBody ) : IEnumerable
ILocalScopeProvider ( IMethodBody methodBody ) : ISynchronizationInformation
ILocalScopeProvider ( IMethodBody methodBody ) : bool
ObjectInvariant ( ) : void

Method Details

CopiedLocalScopeProvider() public method

A local scope provider that can be used together with an object model that is a deep copy made by MetadataDeepCopier. It ensures that all metadata definitions obtained from the original ILocalScopeProvider have been mapped to their copies and does the reverse map before passing queries along to the original ILocalScopeProvider.
public CopiedLocalScopeProvider ( object>.Hashtable mapFromCopyToOriginal, object>.Hashtable mapFromOriginalToCopy, ILocalScopeProvider providerForOriginal ) : System
mapFromCopyToOriginal object>.Hashtable A map from copied definition objects to the original definitions from which the copies were constructed.
mapFromOriginalToCopy object>.Hashtable A map from original definition objects to the copied definitions.
providerForOriginal ILocalScopeProvider An ILocalScopeProvider associated with the original object model.
return System