C# Class Microsoft.Scripting.Actions.TopNamespaceTracker

Represents the top reflected package which contains extra information such as all the assemblies loaded and the built-in modules.
Inheritance: Microsoft.Scripting.Actions.NamespaceTracker
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
LoadNamespaces ( ) : void

Method Details

LoadAssembly() public méthode

Ensures that the assembly is loaded
public LoadAssembly ( Assembly assem ) : bool
assem System.Reflection.Assembly
Résultat bool

LoadNamespaces() protected méthode

protected LoadNamespaces ( ) : void
Résultat void

PublishComTypes() public static méthode

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
Résultat void

TopNamespaceTracker() public méthode

public TopNamespaceTracker ( Microsoft.Scripting.Runtime.ScriptDomainManager manager ) : System
manager Microsoft.Scripting.Runtime.ScriptDomainManager
Résultat System

TryGetPackage() public méthode

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
Résultat Microsoft.Scripting.Actions.NamespaceTracker

TryGetPackageAny() public méthode

public TryGetPackageAny ( string name ) : MemberTracker
name string
Résultat MemberTracker

TryGetPackageLazy() public méthode

public TryGetPackageLazy ( string name ) : MemberTracker
name string
Résultat MemberTracker