C# Класс YamlDotNet.RepresentationModel.YamlNode

Represents a single node in the YAML document.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Accept ( IYamlVisitor visitor ) : void

Accepts the specified visitor by calling the appropriate Visit method on it.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

ToString ( ) : string
this ( YamlNode key ) : YamlNode

Gets the value associated with a key in a YamlMappingNode.

this ( int index ) : YamlNode

Gets the nth element in a YamlSequenceNode.

Защищенные методы

Метод Описание
CombineHashCodes ( int h1, int h2 ) : int

Combines two hash codes into one.

Equals ( YamlNode other ) : bool

Provides a basic implementation of Object.Equals

GetHashCode ( object value ) : int

Gets the hash code of the specified object, or zero if the object is null.

SafeEquals ( object first, object second ) : bool

Gets a value indicating whether two objects are equal.

Приватные методы

Метод Описание
Emit ( IEmitter emitter, EmitterState state ) : void

Saves the current node to the specified emitter.

Load ( NodeEvent yamlEvent, DocumentLoadingState state ) : void

Loads the specified event.

ParseNode ( IParser parser, DocumentLoadingState state ) : YamlNode

Parses the node represented by the next event in parser.

ResolveAliases ( DocumentLoadingState state ) : void

Resolves the aliases that could not be resolved when the node was created.

SafeAllNodes ( RecursionLevel level ) : IEnumerable

When implemented, recursively enumerates all the nodes from the document, starting on the current node. If RecursionLevel.Maximum is reached, a MaximumRecursionLevelReachedException is thrown instead of continuing and crashing with a StackOverflowException.

Save ( IEmitter emitter, EmitterState state ) : void

Saves the current node to the specified emitter.

ToString ( RecursionLevel level ) : string

Описание методов

Accept() публичный абстрактный Метод

Accepts the specified visitor by calling the appropriate Visit method on it.
public abstract Accept ( IYamlVisitor visitor ) : void
visitor IYamlVisitor /// A . ///
Результат void

CombineHashCodes() защищенный статический Метод

Combines two hash codes into one.
protected static CombineHashCodes ( int h1, int h2 ) : int
h1 int
h2 int
Результат int

Equals() защищенный Метод

Provides a basic implementation of Object.Equals
protected Equals ( YamlNode other ) : bool
other YamlNode
Результат bool

GetHashCode() публичный Метод

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

GetHashCode() защищенный статический Метод

Gets the hash code of the specified object, or zero if the object is null.
protected static GetHashCode ( object value ) : int
value object
Результат int

SafeEquals() защищенный статический Метод

Gets a value indicating whether two objects are equal.
protected static SafeEquals ( object first, object second ) : bool
first object
second object
Результат bool

ToString() публичный Метод

public ToString ( ) : string
Результат string

this() публичный Метод

Gets the value associated with a key in a YamlMappingNode.
public this ( YamlNode key ) : YamlNode
key YamlNode
Результат YamlNode

this() публичный Метод

Gets the nth element in a YamlSequenceNode.
public this ( int index ) : YamlNode
index int
Результат YamlNode