Meziantou.Framework.Yaml.Serialization namespace

Classes

NameDescription
YamlAttributeBase type for all Meziantou.Framework.Yaml serialization attributes.
YamlBlockSequenceItemStyleAttributeOverrides how nested block collections are emitted for items in block sequences written by the attributed member.
YamlConstructorAttributeSpecifies which constructor should be used during YAML deserialization.
YamlConverterConverts between YAML tokens and a CLR type.
YamlConverterAttributeSpecifies a custom YamlConverter to use when serializing or deserializing a member or type.
YamlConverterFactoryProduces YamlConverter instances for a family of types.
YamlConverter<T>Converts between YAML and a specific CLR type.
YamlDerivedTypeAttributeRegisters a derived type for polymorphic YAML serialization.
YamlDerivedTypeMappingAttributeRegisters a derived type mapping on a source-generated context, enabling cross-project polymorphism.
YamlEnumMemberNameAttributeSpecifies the YAML scalar used to represent an enum member.
YamlExtensionDataAttributeIndicates that a member should receive any unmapped YAML mapping keys encountered during deserialization.
YamlIgnoreAttributeInstructs the YamlSerializer when to ignore the public field or public read/write property value.
YamlIncludeAttributeIncludes a non-public member in YAML serialization.
YamlNamingPolicyAttributeSpecifies the naming policy used to convert the names of the annotated member or of all members of the annotated type.
YamlNumberHandlingAttributeSpecifies how numbers are handled when serializing or deserializing the annotated member or type.
YamlObjectCreationHandlingAttributeDetermines how deserialization handles an existing instance for the annotated member or type.
YamlPolymorphicAttributeMarks a base type as polymorphic for YAML serialization.
YamlPropertyNameAttributeSpecifies the serialized YAML property name for a member.
YamlPropertyOrderAttributeSpecifies the emitted order for a serialized member.
YamlReaderReads YAML tokens for use by YamlConverter implementations.
YamlReaderWriterBaseShared base class for YamlReader and YamlWriter.
YamlRequiredAttributeSpecifies that a member is required during deserialization.
YamlScalarProvides YAML scalar parsing helpers aligned with the YAML 1.2 core schema conventions used by YamlSerializer.
YamlSerializableAttributeDeclares a root type for a source-generated YamlSerializerContext.
YamlSerializerContextBase type for source-generated YAML serializer contexts.
YamlSourceGenerationOptionsAttributeSpecifies the default YamlSerializerOptions used by a source-generated YamlSerializerContext.
YamlStringStyleAttributeOverrides the style used to emit the string values written by the attributed member.
YamlTypeClassificationApplies the YamlSerializerOptions.TypeClassifiers of a reader to a YAML payload.
YamlTypeClassifierContextDescribes the type a YamlTypeClassifierFactory is asked to classify.
YamlTypeClassifierFactoryCreates the YamlTypeClassifier used to select a union case from a YAML payload.
YamlUnionCaseInfoDescribes a single case of a C# union type to a YamlTypeClassifierFactory.
YamlUnionCasePropertyDescribes a mapping key declared by a union case that serializes as a YAML mapping.
YamlUnionTypeStructuralClassifierClassifies YAML payloads into union case types by comparing their YAML shape and, for mappings, their keys.
YamlUnmappedMemberHandlingAttributeDetermines how unmapped YAML members are handled when deserializing the annotated type.
YamlWriterWrites YAML tokens for use by YamlConverter implementations.

Structs

NameDescription
YamlWriter.BlockSequenceItemStyleScopeRestores the block sequence item styles that were active before a YamlWriter.PushBlockSequenceItemStyle call.
YamlWriter.StringStyleScopeRestores the string style that was active before a YamlWriter.PushStringStyle call.

Interfaces

NameDescription
IYamlOnDeserializedSpecifies that IYamlOnDeserialized.OnDeserialized should be called after deserialization occurs.
IYamlOnDeserializingSpecifies that IYamlOnDeserializing.OnDeserializing should be called before deserialization occurs.
IYamlOnSerializedSpecifies that IYamlOnSerialized.OnSerialized should be called after serialization occurs.
IYamlOnSerializingSpecifies that IYamlOnSerializing.OnSerializing should be called before serialization occurs.

Enums

NameDescription
YamlTokenTypeDescribes the current YAML token being read.
YamlTypeClassifierKindDescribes the kind of type a YamlTypeClassifierFactory is asked to classify.
YamlUnionCaseShapeDescribes the YAML shape a union case is represented by.

Delegates

NameDescription
YamlTypeClassifierSelects the case type matching the YAML value reader is positioned on.