C# Class YamlDotNet.RepresentationModel.YamlScalarNode

Inheritance: YamlNode
Exibir arquivo Open project: aaubry/YamlDotNet Class Usage Examples

Public Methods

Method Description
Accept ( IYamlVisitor visitor ) : void

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

Equals ( object obj ) : bool
GetHashCode ( ) : int

Serves as a hash function for a particular type.

IYamlConvertible ( IEmitter emitter, ObjectSerializer nestedObjectSerializer ) : void
IYamlConvertible ( IParser parser, Type expectedType, ObjectDeserializer nestedObjectDeserializer ) : void
YamlScalarNode ( ) : System

Initializes a new instance of the YamlScalarNode class.

YamlScalarNode ( string value ) : System

Initializes a new instance of the YamlScalarNode class.

Private Methods

Method Description
Emit ( IEmitter emitter, EmitterState state ) : void

Saves the current node to the specified emitter.

Load ( IParser parser, DocumentLoadingState state ) : void
ResolveAliases ( DocumentLoadingState state ) : void

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

SafeAllNodes ( RecursionLevel level ) : IEnumerable

Recursively enumerates all the nodes from the document, starting on the current node, and throwing MaximumRecursionLevelReachedException if RecursionLevel.Maximum is reached.

ToString ( RecursionLevel level ) : string

Returns a System.String that represents this instance.

YamlScalarNode ( IParser parser, DocumentLoadingState state ) : System

Initializes a new instance of the YamlScalarNode class.

Method Details

Accept() public method

Accepts the specified visitor by calling the appropriate Visit method on it.
public Accept ( IYamlVisitor visitor ) : void
visitor IYamlVisitor /// A . ///
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
return int

IYamlConvertible() public method

public IYamlConvertible ( IEmitter emitter, ObjectSerializer nestedObjectSerializer ) : void
emitter IEmitter
nestedObjectSerializer ObjectSerializer
return void

IYamlConvertible() public method

public IYamlConvertible ( IParser parser, Type expectedType, ObjectDeserializer nestedObjectDeserializer ) : void
parser IParser
expectedType System.Type
nestedObjectDeserializer ObjectDeserializer
return void

YamlScalarNode() public method

Initializes a new instance of the YamlScalarNode class.
public YamlScalarNode ( ) : System
return System

YamlScalarNode() public method

Initializes a new instance of the YamlScalarNode class.
public YamlScalarNode ( string value ) : System
value string The value.
return System