SerializerGeneratorGenerateCode Method (SerializerCodeGenerationConfiguration, IEnumerableType) |
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
Syntax public static IEnumerable<string> GenerateCode(
SerializerCodeGenerationConfiguration configuration,
IEnumerable<Type> targetTypes
)
Public Shared Function GenerateCode (
configuration As SerializerCodeGenerationConfiguration,
targetTypes As IEnumerable(Of Type)
) As IEnumerable(Of String)
public:
static IEnumerable<String^>^ GenerateCode(
SerializerCodeGenerationConfiguration^ configuration,
IEnumerable<Type^>^ targetTypes
)
static member GenerateCode :
configuration : SerializerCodeGenerationConfiguration *
targetTypes : IEnumerable<Type> -> IEnumerable<string>
Parameters
- configuration
- Type: MsgPack.SerializationSerializerCodeGenerationConfiguration
The SerializerCodeGenerationConfiguration which holds optional settings. Specifying null means using default settings. - targetTypes
- Type: System.Collections.GenericIEnumerableType
The target types where serializer types to be generated.
Return Value
Type:
IEnumerableStringA file path 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