IntOrStringYamlConverter
Class net10.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 MethodsAccepts(Type)bool Determines whether the given type is supported by this YAML type converter.
ReadYaml(IParser, Type, ObjectDeserializer)object? Reads a YAML scalar from the parser and converts it into an instance of
Int32OrStringV1. WriteYaml(IEmitter, object?, Type, ObjectSerializer) Writes the given object to the provided YAML emitter using the appropriate format.