C# 클래스 NProxy.Core.ProxyTypeBuilderFactory

Represents a proxy type builder factory.
상속: ITypeBuilderFactory, ITypeRepository
파일 보기 프로젝트 열기: mtamme/NProxy

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

CreateBuilder() 공개 메소드

public CreateBuilder ( Type parentType ) : ITypeBuilder
parentType System.Type
리턴 ITypeBuilder

DefineType() 공개 메소드

public DefineType ( string typeName, Type parentType ) : TypeBuilder
typeName string
parentType System.Type
리턴 System.Reflection.Emit.TypeBuilder

GetType() 공개 메소드

public GetType ( MethodInfo methodInfo ) : Type
methodInfo System.Reflection.MethodInfo
리턴 System.Type

ProxyTypeBuilderFactory() 공개 메소드

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

SaveAssembly() 공개 메소드

Saves the dynamic assembly to disk.
public SaveAssembly ( string path ) : void
path string The path of the assembly.
리턴 void