Show / Hide Table of Contents

Class ValuedNodeExtensions

Extension Methods related to valued nodes.
Inheritance
System.Object
ValuedNodeExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Nodes
Assembly: dotNetRDF.dll
Syntax
public static class ValuedNodeExtensions

Methods

| Improve this Doc View Source

AsSafeBoolean(IValuedNode)

Tries to get the result of calling AsBoolean() on a node throwing an error if the node is null.
Declaration
public static bool AsSafeBoolean(this IValuedNode n)
Parameters
Type Name Description
IValuedNode n Node.
Returns
Type Description
System.Boolean
Exceptions
Type Condition
RdfQueryException Thrown if the input is null of the specific valued node cannot be cast to a boolean.
| Improve this Doc View Source

AsValuedNode(INode)

Takes a INode and converts it to a IValuedNode if it is not already an instance that implements the interface.
Declaration
public static IValuedNode AsValuedNode(this INode n)
Parameters
Type Name Description
INode n Node.
Returns
Type Description
IValuedNode Valued Node.
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • AsSafeBoolean(IValuedNode)
    • AsValuedNode(INode)
Back to top Generated by DocFX