C# Class NProxy.Core.ProxyTypeBuilderFactory

Represents a proxy type builder factory.
Inheritance: ITypeBuilderFactory, ITypeRepository
Afficher le fichier Open project: mtamme/NProxy

Méthodes publiques

Méthode Description
CreateBuilder ( Type parentType ) : ITypeBuilder
DefineType ( string typeName, Type parentType ) : TypeBuilder
GetType ( MethodInfo methodInfo ) : Type
ProxyTypeBuilderFactory ( bool canSaveAssembly ) : System

Initializes a new instance of the ProxyTypeBuilderFactory class.

SaveAssembly ( string path ) : void

Saves the dynamic assembly to disk.

Private Methods

Méthode Description
DefineDynamicAssembly ( string name, bool canSaveAssembly ) : AssemblyBuilder

Defines the dynamic assembly.

GetDynamicAssemblyKeyPair ( ) : StrongNameKeyPair

Returns the dynamic assembly key pair.

GetDynamicAssemblyName ( string assemblyName ) : AssemblyName

Returns the dynamic assembly name.

GetExecutingAssemblyName ( ) : AssemblyName

Returns the executing assembly name.

ReadToEnd ( Stream stream ) : byte[]

Reads all bytes from the current position to the end of the specified stream.

Method Details

CreateBuilder() public méthode

public CreateBuilder ( Type parentType ) : ITypeBuilder
parentType System.Type
Résultat ITypeBuilder

DefineType() public méthode

public DefineType ( string typeName, Type parentType ) : TypeBuilder
typeName string
parentType System.Type
Résultat System.Reflection.Emit.TypeBuilder

GetType() public méthode

public GetType ( MethodInfo methodInfo ) : Type
methodInfo System.Reflection.MethodInfo
Résultat System.Type

ProxyTypeBuilderFactory() public méthode

Initializes a new instance of the ProxyTypeBuilderFactory class.
public ProxyTypeBuilderFactory ( bool canSaveAssembly ) : System
canSaveAssembly bool A value indicating whether the assembly can be saved.
Résultat System

SaveAssembly() public méthode

Saves the dynamic assembly to disk.
public SaveAssembly ( string path ) : void
path string The path of the assembly.
Résultat void