IntOrStringYamlConverter
Classnet10.0
Provides a custom YAML type converter that facilitates serialization and deserialization of objects of type
Int32OrStringV1. This converter supports both integers and strings. namespace Aspire.Hosting.Kubernetes.Yaml;
public class IntOrStringYamlConverter : YamlDotNet.Serialization.IYamlTypeConverter{ // ...}IYamlTypeConverter
Constructors1
Section titled ConstructorsMethods3
Section titled Methodsobject? Reads a YAML scalar from the parser and converts it into an instance of
Int32OrStringV1. Writes the given object to the provided YAML emitter using the appropriate format.