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
Mostrar archivo Open project: jschementi/iron Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
LoadNamespaces ( ) : void

Method Details

LoadAssembly() public method

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

LoadNamespaces() protected method

protected LoadNamespaces ( ) : void
return void

PublishComTypes() public static method

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
return void

TopNamespaceTracker() public method

public TopNamespaceTracker ( Microsoft.Scripting.Runtime.ScriptDomainManager manager ) : System
manager Microsoft.Scripting.Runtime.ScriptDomainManager
return System

TryGetPackage() public method

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
return Microsoft.Scripting.Actions.NamespaceTracker

TryGetPackageAny() public method

public TryGetPackageAny ( string name ) : MemberTracker
name string
return MemberTracker

TryGetPackageLazy() public method

public TryGetPackageLazy ( string name ) : MemberTracker
name string
return MemberTracker