Click or drag to resize
SerializerGenerator Class
Provides pre-compiled serialier assembly generation.
Inheritance Hierarchy
SystemObject
  MsgPack.SerializationSerializerGenerator

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public class SerializerGenerator

The SerializerGenerator type exposes the following members.

Constructors
  NameDescription
Public methodSerializerGenerator(AssemblyName) Obsolete.
Initializes a new instance of the SerializerGenerator class.
Public methodSerializerGenerator(Type, AssemblyName) Obsolete.
Initializes a new instance of the SerializerGenerator class.
Top
Properties
  NameDescription
Public propertyAssemblyName Obsolete.
Gets the name of the assembly to be generated.
Public propertyMethod Obsolete.
Gets or sets the SerializationMethod which indicates serialization method to be used.
Public propertyRootType Obsolete.
Gets the type of the root object which will be serialized/deserialized.
Public propertyTargetTypes Obsolete.
Gets target types will be generated dedicated serializers.
Top
Methods
  NameDescription
Public methodStatic memberGenerateAssembly(SerializerAssemblyGenerationConfiguration, IEnumerableType)
Generates an assembly which contains auto-generated serializer types for specified types.
Public methodStatic memberGenerateAssembly(SerializerAssemblyGenerationConfiguration, Type)
Generates an assembly which contains auto-generated serializer types for specified types.
Public methodGenerateAssemblyFile Obsolete.
Generates the serializer assembly and save it to current directory.
Public methodGenerateAssemblyFile(String) Obsolete.
Generates the serializer assembly and save it to specified directory.
Public methodStatic memberGenerateCode(IEnumerableType)
Generates source codes which implement auto-generated serializer types for specified types with default configuration.
Public methodStatic memberGenerateCode(Type)
Generates source codes which implement auto-generated serializer types for specified types with default configuration.
Public methodStatic memberGenerateCode(SerializerCodeGenerationConfiguration, IEnumerableType)
Generates source codes which implement auto-generated serializer types for specified types with specified configuration.
Public methodStatic memberGenerateCode(SerializerCodeGenerationConfiguration, Type)
Generates source codes which implement auto-generated serializer types for specified types with specified configuration.
Public methodStatic memberGenerateSerializerCodeAssembly(SerializerAssemblyGenerationConfiguration, IEnumerableType)
Generates an assembly which contains auto-generated serializer types for specified types.
Public methodStatic memberGenerateSerializerCodeAssembly(SerializerAssemblyGenerationConfiguration, Type)
Generates an assembly which contains auto-generated serializer types for specified types.
Public methodStatic memberGenerateSerializerSourceCodes(IEnumerableType)
Generates source codes which implement auto-generated serializer types for specified types with default configuration.
Public methodStatic memberGenerateSerializerSourceCodes(Type)
Generates source codes which implement auto-generated serializer types for specified types with default configuration.
Public methodStatic memberGenerateSerializerSourceCodes(SerializerCodeGenerationConfiguration, IEnumerableType)
Generates source codes which implement auto-generated serializer types for specified types with specified configuration.
Public methodStatic memberGenerateSerializerSourceCodes(SerializerCodeGenerationConfiguration, Type)
Generates source codes which implement auto-generated serializer types for specified types with specified configuration.
Top
Remarks
Currently, generated assembly has some restrictions:
  • The type name cannot be customize. It always to be MsgPack.Serialization.EmittingSerializers.Generated.<ESCAPED_TARGET_NAME>Serializer. Note that the ESCAPED_TARGET_NAME is the string generated by replacing type delimiters with undersecore ('_').
  • The assembly cannot be used on WinRT because
Note Note
You should NOT assume at all like class hierarchy of generated type, its implementing interfaces, custom attributes, or dependencies. They subject to be changed in the future. If you want to get such fine grained control for them, you should implement own hand made serializers.
See Also