SerializerGeneratorGenerateSerializerCodeAssembly Method (SerializerAssemblyGenerationConfiguration, IEnumerableType) |
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 IEnumerable<SerializerCodeGenerationResult> GenerateSerializerCodeAssembly(
SerializerAssemblyGenerationConfiguration configuration,
IEnumerable<Type> targetTypes
)
Public Shared Function GenerateSerializerCodeAssembly (
configuration As SerializerAssemblyGenerationConfiguration,
targetTypes As IEnumerable(Of Type)
) As IEnumerable(Of SerializerCodeGenerationResult)
public:
static IEnumerable<SerializerCodeGenerationResult^>^ GenerateSerializerCodeAssembly(
SerializerAssemblyGenerationConfiguration^ configuration,
IEnumerable<Type^>^ targetTypes
)
static member GenerateSerializerCodeAssembly :
configuration : SerializerAssemblyGenerationConfiguration *
targetTypes : IEnumerable<Type> -> IEnumerable<SerializerCodeGenerationResult>
Parameters
- configuration
- Type: MsgPack.SerializationSerializerAssemblyGenerationConfiguration
The SerializerAssemblyGenerationConfiguration which holds required AssemblyName and optional settings. - targetTypes
- Type: System.Collections.GenericIEnumerableType
The target types where serializer types to be generated.
Return Value
Type:
IEnumerableSerializerCodeGenerationResult
A
SerializerCodeGenerationResult collection which correspond to codes generated to
targetTypes.
All
FilePath properties of items will be same and will point to generated DLL file.
Exceptions Remarks
Serializer types for dependent types which are refered from specified targetTypes are automatically generated.
See Also