Object serialization layer, aligned with System.Text.Json concepts, attributes, and source generation.
TomlAttributeBase type for all Tomlyn serialization attributes.TomlConstructorAttributeSpecifies which constructor should be used during TOML deserialization.TomlConverterConverts between TOML tokens and a CLR type.TomlConverter<T>Converts between TOML and a specific CLR type.TomlConverterAttributeSpecifies a custom TomlConverter to use when serializing or deserializing a member or type.TomlConverterFactoryProduces TomlConverter instances for a family of types.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 .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.TomlStringStyleAttributeOverrides string formatting for a string member.TomlTableArrayStyleAttributeOverrides array-of-tables formatting for a collection member.TomlWriterWrites TOML tokens for use by TomlConverter implementations.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.TomlBooleanPreferenceRepresents an optional boolean formatting preference on an attribute.TomlTokenTypeRepresents the current logical token when reading TOML.This namespace contains the building blocks used by TomlSerializer:
TomlTypeInfo<T>, resolver interfaces, and source-generated contexts).System.Text.Json.Serialization attributes).TomlConverter<T> / TomlConverterFactory) and reader/writer primitives (TomlReader, TomlWriter).