Class DecimalNode
A Valued Node representing decimal nodes.
Implements
System.IEquatable<BaseLiteralNode>
System.IComparable<BaseLiteralNode>
System.IEquatable<LiteralNode>
System.IComparable<LiteralNode>
System.IComparable<INode>
System.IComparable<IBlankNode>
System.IComparable<IGraphLiteralNode>
System.IComparable<ILiteralNode>
System.IComparable<IUriNode>
System.IComparable<IVariableNode>
System.IEquatable<INode>
System.IEquatable<IBlankNode>
System.IEquatable<IGraphLiteralNode>
System.IEquatable<ILiteralNode>
System.IEquatable<IUriNode>
System.IEquatable<IVariableNode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Nodes
Assembly: dotNetRDF.dll
Syntax
public class DecimalNode : NumericNode, ILiteralNode, IEquatable<BaseLiteralNode>, IComparable<BaseLiteralNode>, IEquatable<LiteralNode>, IComparable<LiteralNode>, IValuedNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, ISerializable, IXmlSerializable
Constructors
| Improve this Doc View SourceDecimalNode(IGraph, Decimal)
Creates a new decimal valued node.
Declaration
public DecimalNode(IGraph g, decimal value)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Decimal | value | Decimal value. |
DecimalNode(IGraph, Decimal, String)
Creates a new decimal valued node.
Declaration
public DecimalNode(IGraph g, decimal value, string lexicalValue)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Decimal | value | Decimal value. |
System.String | lexicalValue | Lexical value. |
Methods
| Improve this Doc View SourceAsDecimal()
Gets the decimal value.
Declaration
public override decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
Overrides
| Improve this Doc View SourceAsDouble()
Gets the double value of the decimal.
Declaration
public override double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
Overrides
| Improve this Doc View SourceAsFloat()
Gets the float value of the decimal.
Declaration
public override float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceAsInteger()
Gets the integer value of the decimal.
Declaration
public override long AsInteger()
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
Implements
System.IEquatable<T>
System.IComparable<T>
System.IEquatable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable