C# Класс Microsoft.Scripting.Actions.TopNamespaceTracker

Represents the top reflected package which contains extra information such as all the assemblies loaded and the built-in modules.
Наследование: Microsoft.Scripting.Actions.NamespaceTracker
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LoadAssembly ( Assembly assem ) : bool

Ensures that the assembly is loaded

PublishComTypes ( Assembly interopAssembly ) : void

When an (interop) assembly is loaded, we scan it to discover the GUIDs of COM interfaces so that we can associate the type definition with COM objects with that GUID. Since scanning all loaded assemblies can be expensive, in the future, we might consider a more explicit user binder to trigger scanning of COM types.

TopNamespaceTracker ( Microsoft.Scripting.Runtime.ScriptDomainManager manager ) : System
TryGetPackage ( string name ) : Microsoft.Scripting.Actions.NamespaceTracker

returns the package associated with the specified namespace and updates the associated module to mark the package as imported.

TryGetPackageAny ( string name ) : MemberTracker
TryGetPackageLazy ( string name ) : MemberTracker

Защищенные методы

Метод Описание
LoadNamespaces ( ) : void

Описание методов

LoadAssembly() публичный Метод

Ensures that the assembly is loaded
public LoadAssembly ( Assembly assem ) : bool
assem System.Reflection.Assembly
Результат bool

LoadNamespaces() защищенный Метод

protected LoadNamespaces ( ) : void
Результат void

PublishComTypes() публичный статический Метод

When an (interop) assembly is loaded, we scan it to discover the GUIDs of COM interfaces so that we can associate the type definition with COM objects with that GUID. Since scanning all loaded assemblies can be expensive, in the future, we might consider a more explicit user binder to trigger scanning of COM types.
public static PublishComTypes ( Assembly interopAssembly ) : void
interopAssembly System.Reflection.Assembly
Результат void

TopNamespaceTracker() публичный Метод

public TopNamespaceTracker ( Microsoft.Scripting.Runtime.ScriptDomainManager manager ) : System
manager Microsoft.Scripting.Runtime.ScriptDomainManager
Результат System

TryGetPackage() публичный Метод

returns the package associated with the specified namespace and updates the associated module to mark the package as imported.
public TryGetPackage ( string name ) : Microsoft.Scripting.Actions.NamespaceTracker
name string
Результат Microsoft.Scripting.Actions.NamespaceTracker

TryGetPackageAny() публичный Метод

public TryGetPackageAny ( string name ) : MemberTracker
name string
Результат MemberTracker

TryGetPackageLazy() публичный Метод

public TryGetPackageLazy ( string name ) : MemberTracker
name string
Результат MemberTracker