C# Class ICSharpCode.ILSpy.AssemblyList

A list of assemblies.
显示文件 Open project: aerror2/ILSpy-For-MacOSX Class Usage Examples

Public Methods

Method Description
AssemblyList ( System.Xml.Linq.XElement listElement ) : System

Loads an assembly list from XML.

AssemblyList ( string listName ) : System
GetAssemblies ( ) : ICSharpCode.ILSpy.LoadedAssembly[]

Gets the loaded assemblies. This method is thread-safe.

OpenAssembly ( string file, bool isAutoLoaded = false ) : LoadedAssembly

Opens an assembly from disk. Returns the existing assembly node if it is already loaded.

Sort ( IComparer comparer ) : void
Sort ( int index, int count, IComparer comparer ) : void
Unload ( LoadedAssembly assembly ) : void

Replace the assembly object model from a crafted stream, without disk I/O Returns null if it is not already loaded.

findAssemblyByShortName ( string shortName ) : LoadedAssembly

Private Methods

Method Description
Assemblies_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
ClearCache ( ) : void
RefreshSave ( ) : void
RequestGC ( ) : void
SaveAsXml ( ) : XElement

Saves this assembly list to XML.

Method Details

AssemblyList() public method

Loads an assembly list from XML.
public AssemblyList ( System.Xml.Linq.XElement listElement ) : System
listElement System.Xml.Linq.XElement
return System

AssemblyList() public method

public AssemblyList ( string listName ) : System
listName string
return System

GetAssemblies() public method

Gets the loaded assemblies. This method is thread-safe.
public GetAssemblies ( ) : ICSharpCode.ILSpy.LoadedAssembly[]
return ICSharpCode.ILSpy.LoadedAssembly[]

OpenAssembly() public method

Opens an assembly from disk. Returns the existing assembly node if it is already loaded.
public OpenAssembly ( string file, bool isAutoLoaded = false ) : LoadedAssembly
file string
isAutoLoaded bool
return LoadedAssembly

Sort() public method

public Sort ( IComparer comparer ) : void
comparer IComparer
return void

Sort() public method

public Sort ( int index, int count, IComparer comparer ) : void
index int
count int
comparer IComparer
return void

Unload() public method

Replace the assembly object model from a crafted stream, without disk I/O Returns null if it is not already loaded.
public Unload ( LoadedAssembly assembly ) : void
assembly LoadedAssembly
return void

findAssemblyByShortName() public method

public findAssemblyByShortName ( string shortName ) : LoadedAssembly
shortName string
return LoadedAssembly