Meziantou.Framework.Toml.Serialization namespace

Classes

NameDescription
TomlAttributeBase type for all TOML serialization attributes.
TomlConstructorAttributeSpecifies which constructor should be used during TOML deserialization.
TomlConverterConverts between TOML tokens and a CLR type.
TomlConverterAttributeSpecifies a custom TomlConverter to use when serializing or deserializing a member or type.
TomlConverterFactoryProduces TomlConverter instances for a family of types.
TomlConverter<T>Converts between TOML and a specific CLR type.
TomlDerivedTypeAttributeRegisters a derived type for polymorphic TOML serialization.
TomlDerivedTypeMappingAttributeRegisters a derived type mapping on a source-generated TomlSerializerContext, enabling cross-project polymorphism.
TomlDottedKeyHandlingAttributeOverrides dotted-key handling for member names declared on a TOML-serializable type.
TomlExtensionDataAttributeIndicates that a member should receive any unmapped TOML keys encountered during deserialization.
TomlIgnoreAttributeInstructs the TomlSerializer when to ignore the field or property value.
TomlIncludeAttributeIncludes a non-public member in TOML serialization.
TomlInlineTableAttributeOverrides inline table formatting for a member.
TomlMappingOrderAttributeOverrides member ordering for a TOML-serializable type.
TomlMetadataStoreDefault ITomlMetadataStore implementation backed by a ConditionalWeakTable<TKey, TValue>.
TomlObjectCreationHandlingAttributeDetermines how deserialization handles an existing instance for the annotated member or type.
TomlPolymorphicAttributeMarks a base type as polymorphic for TOML serialization.
TomlPolymorphicTypeInfo<TBase>Provides source-generator-friendly discriminator-based polymorphism support for TOML serialization.
TomlPropertyNameAttributeSpecifies the serialized TOML property name for a member.
TomlPropertyOrderAttributeSpecifies the emitted order for a serialized member.
TomlReaderReads TOML tokens for use by TomlConverter implementations.
TomlRequiredAttributeSpecifies that a member is required during deserialization.
TomlSerializableAttributeSpecifies a root type to include in a source-generated TomlSerializerContext.
TomlSerializerContextBase type for source-generated TOML serializer contexts.
TomlSingleOrArrayAttributeAllows a collection member to be deserialized from either a single TOML value or a TOML array.
TomlSourceGenerationOptionsAttributeSpecifies default source generation options for a TomlSerializerContext.
TomlStringEnumConverterConverts enum values to and from their names, instead of their numeric values.
TomlStringEnumMemberNameAttributeSets the name TomlStringEnumConverter uses for an enum value.
TomlStringStyleAttributeOverrides string formatting for a string member.
TomlTableArrayStyleAttributeOverrides array-of-tables formatting for a collection member.
TomlUnmappedMemberHandlingAttributeDetermines how unmapped TOML members are handled when deserializing the annotated type.
TomlWriterWrites TOML tokens for use by TomlConverter implementations.

Interfaces

NameDescription
ITomlMetadataStoreAssociates TOML trivia/comment metadata with object instances.
ITomlOnDeserializedDefines a callback that is invoked after an instance has been populated during deserialization.
ITomlOnDeserializingDefines a callback that is invoked after an instance is created but before it is populated during deserialization.
ITomlOnSerializedDefines a callback that is invoked after an instance has been serialized to TOML.
ITomlOnSerializingDefines a callback that is invoked before an instance is serialized to TOML.

Enums

NameDescription
TomlBooleanPreferenceRepresents an optional boolean formatting preference on an attribute.
TomlTokenTypeRepresents the current logical token when reading TOML.