C# Class XSpect.Yacq.SystemObjects.YacqAssembly

Defines and represents a dynamic assembly with YACQ codes.
Datei anzeigen Open project: takeshik/yacq Class Usage Examples

Private Properties

Property Type Description
DefineType YacqType
DefineType YacqType
SHA1Cng System
SHA1CryptoServiceProvider System

Public Methods

Method Description
DefineType ( Type>.IDictionary members ) : YacqType

Constructs an anonymous YacqType in this YacqAssembly.

DefineType ( String name ) : YacqType

Constructs a YacqType in this YacqAssembly.

GetType ( String name ) : YacqType

Gets the Type object with the specified name in this assembly.

GetTypes ( ) : IEnumerable

Gets the types defined in this assembly.

Save ( MethodInfo entryMethod = null ) : void

Saves this YacqAssembly to disk.

TryDefineType ( Type>.IDictionary members ) : YacqType

Constructs or gets an anonymous YacqType in this YacqAssembly.

TryDefineType ( String name ) : YacqType

Constructs or gets a YacqType in this YacqAssembly.

YacqAssembly ( String name, PEFileKinds fileKind = PEFileKinds.Dll ) : System

Initializes a new instance of the YacqAssembly class.

Private Methods

Method Description
DefineType ( Type>.IDictionary members, System.Boolean throwIfExists ) : YacqType
DefineType ( String name, IEnumerable baseTypes, System.Boolean throwIfExists ) : YacqType
SHA1Cng ( ) : System
SHA1CryptoServiceProvider ( ) : System

Method Details

DefineType() public method

Constructs an anonymous YacqType in this YacqAssembly.
public DefineType ( Type>.IDictionary members ) : YacqType
members Type>.IDictionary The dictionary which contains pairs of the name and its type of member property.
return YacqType

DefineType() public method

Constructs a YacqType in this YacqAssembly.
public DefineType ( String name ) : YacqType
name String The full path of the type. name cannot contain embedded nulls.
return YacqType

GetType() public method

Gets the Type object with the specified name in this assembly.
public GetType ( String name ) : YacqType
name String The full name of the type.
return YacqType

GetTypes() public method

Gets the types defined in this assembly.
public GetTypes ( ) : IEnumerable
return IEnumerable

Save() public method

Saves this YacqAssembly to disk.
public Save ( MethodInfo entryMethod = null ) : void
entryMethod System.Reflection.MethodInfo A reference to the method that represents the entry point for this , or null if the entry point is automatically searched.
return void

TryDefineType() public method

Constructs or gets an anonymous YacqType in this YacqAssembly.
public TryDefineType ( Type>.IDictionary members ) : YacqType
members Type>.IDictionary The dictionary which contains pairs of the name and its type of member property.
return YacqType

TryDefineType() public method

Constructs or gets a YacqType in this YacqAssembly.
public TryDefineType ( String name ) : YacqType
name String The full path of the type. name cannot contain embedded nulls.
return YacqType

YacqAssembly() public method

Initializes a new instance of the YacqAssembly class.
public YacqAssembly ( String name, PEFileKinds fileKind = PEFileKinds.Dll ) : System
name String Name of dynamic assembly which contains generated types.
fileKind PEFileKinds The type of the assembly executable being built.
return System