C# Class System.Yaml.YamlScalar

Represents a scalar node in a YAML document.
Inheritance: YamlNode
Datei anzeigen Open project: jbruening/YamlSerializer-Fork Class Usage Examples

Private Properties

Property Type Description
Equals bool
ToString string
UpdateNativeObject void

Public Methods

Method Description
YamlScalar ( ) : System.Text.RegularExpressions

Create empty string node.

YamlScalar ( DateTime value ) : System.Text.RegularExpressions

Initialize a timestamp node that has value as its content.

YamlScalar ( bool value ) : System.Text.RegularExpressions

Initialize a bool node that has value as its content.

YamlScalar ( double value ) : System.Text.RegularExpressions

Initialize a float node that has value as its content.

YamlScalar ( int value ) : System.Text.RegularExpressions

Initialize an integer node that has value as its content.

YamlScalar ( string value ) : System.Text.RegularExpressions

Initialize string node that has value as its content.

YamlScalar ( string tag, string value ) : System.Text.RegularExpressions

Create a scalar node with arbitral tag.

Protected Methods

Method Description
GetHashCodeCore ( ) : int

Returns the hash code. The returned value will be cached until YamlNode.OnChanged is called.

OnChanged ( ) : void

Call this function when the content of the node is changed.

Private Methods

Method Description
Equals ( YamlNode b, ObjectRepository repository ) : bool
ToString ( int &length ) : string
UpdateNativeObject ( ) : void

Method Details

GetHashCodeCore() protected method

Returns the hash code. The returned value will be cached until YamlNode.OnChanged is called.
protected GetHashCodeCore ( ) : int
return int

OnChanged() protected method

Call this function when the content of the node is changed.
protected OnChanged ( ) : void
return void

YamlScalar() public method

Create empty string node.
public YamlScalar ( ) : System.Text.RegularExpressions
return System.Text.RegularExpressions

YamlScalar() public method

Initialize a timestamp node that has value as its content.
public YamlScalar ( DateTime value ) : System.Text.RegularExpressions
value DateTime
return System.Text.RegularExpressions

YamlScalar() public method

Initialize a bool node that has value as its content.
public YamlScalar ( bool value ) : System.Text.RegularExpressions
value bool
return System.Text.RegularExpressions

YamlScalar() public method

Initialize a float node that has value as its content.
public YamlScalar ( double value ) : System.Text.RegularExpressions
value double
return System.Text.RegularExpressions

YamlScalar() public method

Initialize an integer node that has value as its content.
public YamlScalar ( int value ) : System.Text.RegularExpressions
value int
return System.Text.RegularExpressions

YamlScalar() public method

Initialize string node that has value as its content.
public YamlScalar ( string value ) : System.Text.RegularExpressions
value string Value of the node.
return System.Text.RegularExpressions

YamlScalar() public method

Create a scalar node with arbitral tag.
public YamlScalar ( string tag, string value ) : System.Text.RegularExpressions
tag string Tag to the node.
value string Value of the node.
return System.Text.RegularExpressions