Class DoubleNode
A Valued Node representing double values.
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 DoubleNode : 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 SourceDoubleNode(IGraph, Double)
Creates a new double valued node.
Declaration
public DoubleNode(IGraph g, double value)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Double | value | Double value. |
DoubleNode(IGraph, Double, String)
Creates a new double valued node.
Declaration
public DoubleNode(IGraph g, double value, string lexicalValue)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Double | value | Double value. |
System.String | lexicalValue | Lexical value. |
Methods
| Improve this Doc View SourceAsDecimal()
Gets the decimal value of the double.
Declaration
public override decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
Overrides
| Improve this Doc View SourceAsDouble()
Gets the double value.
Declaration
public override double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
Overrides
| Improve this Doc View SourceAsFloat()
Gets the float value of the double.
Declaration
public override float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceAsInteger()
Gets the integer value of the double.
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