C# Class MsgPack.Serialization.EmittingSerializers.SerializationMethodGeneratorManager

Defines common features and interfaces for SerializationMethodGeneratorManager.
ファイルを表示 Open project: msgpack/msgpack-cli Class Usage Examples

Public Methods

Method Description
CreateEnumEmitter ( SerializationContext context, SerializerSpecification specification ) : SerializerEmitter

Creates new SerializerEmitter which corresponds to the specified EmitterFlavor.

CreateObjectEmitter ( SerializerSpecification specification, Type baseClass ) : SerializerEmitter

Creates new SerializerEmitter which corresponds to the specified EmitterFlavor.

Get ( ) : SerializationMethodGeneratorManager

Get the appropriate SerializationMethodGeneratorManager for the current configuration.

Get ( AssemblyBuilder assemblyBuilder ) : SerializationMethodGeneratorManager

Get the dumpable SerializationMethodGeneratorManager with specified brandnew assembly builder.

Get ( SerializationMethodGeneratorOption option ) : SerializationMethodGeneratorManager

Get the appropriate SerializationMethodGeneratorManager for specified options.

Private Methods

Method Description
Refresh ( ) : void
SerializationMethodGeneratorManager ( bool isDebuggable, bool isCollectable, AssemblyBuilder assemblyBuilder ) : System
SetUpAssemblyBuilderAttributes ( AssemblyBuilder dedicatedAssemblyBuilder, bool isDebuggable ) : void

Method Details

CreateEnumEmitter() public method

Creates new SerializerEmitter which corresponds to the specified EmitterFlavor.
public CreateEnumEmitter ( SerializationContext context, SerializerSpecification specification ) : SerializerEmitter
context SerializationContext The .
specification SerializerSpecification The specification of the serializer.
return SerializerEmitter

CreateObjectEmitter() public method

Creates new SerializerEmitter which corresponds to the specified EmitterFlavor.
public CreateObjectEmitter ( SerializerSpecification specification, Type baseClass ) : SerializerEmitter
specification SerializerSpecification The specification of the serializer.
baseClass System.Type Type of the base class of the serializer.
return SerializerEmitter

Get() public static method

Get the appropriate SerializationMethodGeneratorManager for the current configuration.
public static Get ( ) : SerializationMethodGeneratorManager
return SerializationMethodGeneratorManager

Get() public static method

Get the dumpable SerializationMethodGeneratorManager with specified brandnew assembly builder.
public static Get ( AssemblyBuilder assemblyBuilder ) : SerializationMethodGeneratorManager
assemblyBuilder System.Reflection.Emit.AssemblyBuilder An assembly builder which will store all generated types.
return SerializationMethodGeneratorManager

Get() public static method

Get the appropriate SerializationMethodGeneratorManager for specified options.
public static Get ( SerializationMethodGeneratorOption option ) : SerializationMethodGeneratorManager
option SerializationMethodGeneratorOption .
return SerializationMethodGeneratorManager