コード例 #1
0
 public GeneratorContext(
     RoslynMetadataHelper roselyn,
     ReadContext read,
     WriteContext write,
     IValueSerializationGenerator generator)
 {
     Roselyn        = roselyn;
     Read           = read;
     Write          = write;
     ValueGenerator = generator;
 }
コード例 #2
0
 public SerializerGenerator(
     string classFullName,
     IStaticSerializerResolver staticSerializerResolver,
     ICollectionImplementationResolver supportedCollections,
     IValueSerializationGenerator valuesGenerator,
     bool isRootImmutableDisabled,
     RoslynMetadataHelper roslyn,
     SourceFileMetadata generatedCodeMeta)
 {
     _classFullName            = classFullName;
     _staticSerializerResolver = staticSerializerResolver;
     _supportedCollections     = supportedCollections;
     _valuesGenerator          = valuesGenerator;
     _isRootImmutableDisabled  = isRootImmutableDisabled;
     _roslyn            = roslyn;
     _generatedCodeMeta = generatedCodeMeta;
 }