SerializerGenerator.GenerateSerializerSourceCodes Method (SerializerCodeGenerationConfiguration,Type[]) |
Generates source codes which implement auto-generated serializer types for specified types with specified configuration.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntaxpublic static IEnumerable<SerializerCodeGenerationResult> GenerateSerializerSourceCodes(
SerializerCodeGenerationConfiguration configuration,
params Type[] targetTypes
)
Public Shared Function GenerateSerializerSourceCodes (
configuration As SerializerCodeGenerationConfiguration,
ParamArray targetTypes As Type()
) As IEnumerable(Of SerializerCodeGenerationResult)
public:
static IEnumerable<SerializerCodeGenerationResult^>^ GenerateSerializerSourceCodes(
SerializerCodeGenerationConfiguration^ configuration,
... array<Type^>^ targetTypes
)
static member GenerateSerializerSourceCodes :
configuration : SerializerCodeGenerationConfiguration *
targetTypes : Type[] -> IEnumerable<SerializerCodeGenerationResult>
Parameters
- configuration
- Type: MsgPack.Serialization.SerializerCodeGenerationConfiguration
The SerializerCodeGenerationConfiguration which holds optional settings. Specifying null means using default settings. - targetTypes
- Type:System.Type[]
The target types where serializer types to be generated.
Return Value
Type:
IEnumerable<SerializerCodeGenerationResult>A
SerializerCodeGenerationResult collection which correspond to codes generated to
targetTypes.
Exceptions
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