YamlNode Class
Represents the Yaml Node.
public abstract class YamlNodeConstructors
| Name | Description |
|---|---|
| YamlNode() |
YamlNode()
protected YamlNode()No documentation is available.
Methods
| Name | Description |
|---|---|
| DeepClone() | Creates a deep clone of the current value. |
| EnumerateEvents() | Enumerates parsing events for this YAML node. |
| FromObject(object, YamlSerializerOptions?, Type?) | Creates a YAML element from an object. |
| ReadElement(EventReader) | Reads the next YAML element from the event stream. |
| ToObject(Type, YamlSerializerOptions?) | Converts this YAML node to an object. |
| ToObject<T>(YamlSerializerOptions?) | Converts this node to an instance of T. |
| ToString() | Returns a string representation of the current instance. |
| WriteTo(IEmitter, bool) | Writes to. |
| WriteTo(TextWriter, bool) | Writes to. |
DeepClone()
EnumerateEvents()
YamlNode.csEnumerates parsing events for this YAML node.
public IEnumerable<ParsingEvent> EnumerateEvents()Returns
FromObject(object, YamlSerializerOptions?, Type?)
YamlNode.csCreates a YAML element from an object.
public static YamlElement FromObject(object value, YamlSerializerOptions? options = null, Type? expectedType = null)ReadElement(EventReader)
YamlNode.csReads the next YAML element from the event stream.
protected static YamlElement? ReadElement(EventReader eventReader)ToObject overloads
ToObject(Type, YamlSerializerOptions?)
YamlNode.csConverts this YAML node to an object.
public object? ToObject(Type type, YamlSerializerOptions? options = null)ToObject<T>(YamlSerializerOptions?)
YamlNode.csConverts this node to an instance of T.
public T? ToObject<T>(YamlSerializerOptions? options = null)ToString()
YamlNode.csWriteTo overloads
WriteTo(IEmitter, bool)
YamlNode.csWriteTo(TextWriter, bool)
YamlNode.csWrites to.
public void WriteTo(TextWriter writer, bool suppressDocumentTags = false)Parameters
writerTextWritersuppressDocumentTagsbool