SerializerGeneratorGenerateAssembly Method (SerializerAssemblyGenerationConfiguration, Type) |
Generates an assembly which contains auto-generated serializer types for specified types.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static string GenerateAssembly(
SerializerAssemblyGenerationConfiguration configuration,
params Type[] targetTypes
)
Public Shared Function GenerateAssembly (
configuration As SerializerAssemblyGenerationConfiguration,
ParamArray targetTypes As Type()
) As String
public:
static String^ GenerateAssembly(
SerializerAssemblyGenerationConfiguration^ configuration,
... array<Type^>^ targetTypes
)
static member GenerateAssembly :
configuration : SerializerAssemblyGenerationConfiguration *
targetTypes : Type[] -> string
Parameters
- configuration
- Type: MsgPack.SerializationSerializerAssemblyGenerationConfiguration
The SerializerAssemblyGenerationConfiguration which holds required AssemblyName and optional settings. - targetTypes
- Type: SystemType
The target types where serializer types to be generated.
Return Value
Type:
StringThe file path for generated single module assembly file.
Exceptions Remarks
Serializer types for dependent types which are refered from specified targetTypes are automatically generated.
See Also