YamlTypeConverter class
Utility class for converting YAML nodes to appropriate .NET types
public static class YamlTypeConverter
Public Members
| name | description |
|---|---|
| static ConvertValueToProperType(…) | Convert a YamlNode to the most appropriate .NET type based on its tag and content |
| static ConvertYamlDocumentToPSObject(…) | Dispatcher that mirrors Convert-YamlDocumentToPSObject: maps Mapping→Hashtable/(OrderedDictionary), Sequence→array, Scalar→typed value. (2 methods) |
| static ConvertYamlMappingToHashtable(…) | Convert a YamlMappingNode to a dictionary. If ordered is true, returns an OrderedDictionary; otherwise a Dictionary<string,object?>. |
| static ConvertYamlSequenceToArray(…) | Convert a YamlSequenceNode to an array (object?[]), preserving element order. |
See Also
- namespace Kestrun.Utilities.Yaml