Click or drag to resize
SerializerGeneratorGenerateSerializerSourceCodes Method (SerializerCodeGenerationConfiguration, Type)
Generates source codes which implement auto-generated serializer types for specified types with specified configuration.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static IEnumerable<SerializerCodeGenerationResult> GenerateSerializerSourceCodes(
	SerializerCodeGenerationConfiguration configuration,
	params Type[] targetTypes
)

Parameters

configuration
Type: MsgPack.SerializationSerializerCodeGenerationConfiguration
The SerializerCodeGenerationConfiguration which holds optional settings. Specifying null means using default settings.
targetTypes
Type: SystemType
The target types where serializer types to be generated.

Return Value

Type: IEnumerableSerializerCodeGenerationResult
A SerializerCodeGenerationResult collection which correspond to codes generated to targetTypes.
Exceptions
ExceptionCondition
ArgumentNullExceptiontargetTypes is null.
SerializationExceptionFailed to generate a serializer because of targetTypes.
Remarks
Serializer types for dependent types which are refered from specified targetTypes are NOT generated. This method just generate serializer types for specified types.
See Also