YamlTypeConverter.ConvertValueToProperType method
Convert a YamlNode to the most appropriate .NET type based on its tag and content
public static object? ConvertValueToProperType(YamlNode node)
| parameter | description |
|---|---|
| node | The YAML node to convert. |
Return Value
The converted .NET object, or null if the node is null.
Exceptions
| exception | condition |
|---|---|
| FormatException | Thrown when the node’s value cannot be converted to the appropriate type. |
See Also
- class YamlTypeConverter
- namespace Kestrun.Utilities.Yaml