YamlTypeConverter.ConvertYamlDocumentToPSObject method (1 of 2)
Convenience overload to defensively handle scenarios where (due to dynamic invocation from PowerShell) a KeyValuePair<YamlNode,YamlNode> is passed instead of just the Value node. We unwrap and delegate. This should not normally be necessary, but avoids brittle failures when reflection / dynamic binding mis-identifies the argument type.
public static object? ConvertYamlDocumentToPSObject(KeyValuePair<YamlNode, YamlNode> pair,
bool ordered = false)
See Also
- class YamlTypeConverter
- namespace Kestrun.Utilities.Yaml
YamlTypeConverter.ConvertYamlDocumentToPSObject method (2 of 2)
Dispatcher that mirrors Convert-YamlDocumentToPSObject: maps Mapping→Hashtable/(OrderedDictionary), Sequence→array, Scalar→typed value.
public static object? ConvertYamlDocumentToPSObject(YamlNode node, bool ordered = false)
See Also
- class YamlTypeConverter
- namespace Kestrun.Utilities.Yaml