public JsonSerializerOptionsState(JsonSerializerOptions options) { ObjectMappingRegistry = new ObjectMappingRegistry(options); ObjectMappingConventionRegistry = new ObjectMappingConventionRegistry(); DiscriminatorConventionRegistry = new DiscriminatorConventionRegistry(options); DictionaryKeyConverterRegistry = new DictionaryKeyConverterRegistry(options); }
public SerializationRegistry(CborOptions options) { ConverterRegistry = new CborConverterRegistry(options); ObjectMappingRegistry = new ObjectMappingRegistry(this); ObjectMappingConventionRegistry = new ObjectMappingConventionRegistry(); DiscriminatorConventionRegistry = new DiscriminatorConventionRegistry(this); }