Click or drag to resize
GraphNode Class
Represents an item of a graph query result, it can be a vertex, an edge, a path or an scalar value.
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    Dse.GraphGraphNode

Namespace: Dse.Graph
Assembly: Dse (in Dse.dll) Version: 2.4.0
Syntax
C#
[SerializableAttribute]
public class GraphNode : DynamicObject, IEquatable<GraphNode>, 
	IGraphNode, IEquatable<IGraphNode>, ISerializable

The GraphNode type exposes the following members.

Constructors
  NameDescription
Public methodGraphNode
Creates a new instance of GraphNode.
Top
Methods
  NameDescription
Public methodEquals(Object)
Returns true if the value represented by this instance is the same.
(Overrides ObjectEquals(Object).)
Public methodEquals(GraphNode)
Returns true if the value represented by this instance is the same.
Public methodEquals(IGraphNode)
Public methodGetT
Gets the typed value of a property of the result.
Public methodGetDynamicMemberNames
Returns the enumeration of all dynamic member names.
(Inherited from DynamicObject.)
Public methodGetHashCode
Gets the hash code for this instance, based on its value.
(Overrides ObjectGetHashCode.)
Public methodGetMetaObject
Provides a DynamicMetaObject that dispatches to the dynamic virtual methods. The object can be encapsulated inside another DynamicMetaObject to provide custom behavior for individual actions. This method supports the Dynamic Language Runtime infrastructure for language implementers and it is not intended to be used directly from your code.
(Inherited from DynamicObject.)
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Public methodGetProperties
Gets the a dictionary of properties of this node.
Public methodGetRaw
Gets the raw data represented by this instance.

Raw internal representation might be different depending on the graph serialization format and it is subject to change without any prior notice.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasProperty
Returns true if the property is defined in this instance.
Public methodTo(Type)
Returns the representation of the GraphNode as an instance of the type provided.
Public methodToT
Returns the representation of the GraphNode as an instance of type T.
Public methodToArray
Converts the instance into an array when the internal representation is a json array.
Public methodToBoolean
Returns the representation of the result as a boolean.
Public methodToDouble
Returns the representation of the result as a double.
Public methodToEdge
Returns an edge representation of the current instance.

This method is maintained for backward compatibity. It's recommended that you use ToT instead, providing IEdge as type parameter

Public methodToIArray
Converts the instance into an array when the internal representation is a json array.
Public methodToInt32
Returns the representation of the result as an int.
Public methodToPath
Returns a Path representation of the current instance.

This method is maintained for backward compatibity. It's recommended that you use ToT instead, providing IPath as type parameter.

Public methodToString
Returns the json representation of the result.
(Overrides ObjectToString.)
Public methodToVertex
Returns a vertex representation of the current instance.

This method is maintained for backward compatibity. It's recommended that you use ToT instead, providing IVertex as type parameter.

Public methodTryBinaryOperation
Provides implementation for binary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication.
(Inherited from DynamicObject.)
Public methodTryConvert (Overrides DynamicObjectTryConvert(ConvertBinder, Object).)
Public methodTryCreateInstance
Provides the implementation for operations that initialize a new instance of a dynamic object. This method is not intended for use in C# or Visual Basic.
(Inherited from DynamicObject.)
Public methodTryDeleteIndex
Provides the implementation for operations that delete an object by index. This method is not intended for use in C# or Visual Basic.
(Inherited from DynamicObject.)
Public methodTryDeleteMember
Provides the implementation for operations that delete an object member. This method is not intended for use in C# or Visual Basic.
(Inherited from DynamicObject.)
Public methodTryGetIndex
Provides the implementation for operations that get a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for indexing operations.
(Inherited from DynamicObject.)
Public methodTryGetMember
Provides the implementation for operations that get member values.
(Overrides DynamicObjectTryGetMember(GetMemberBinder, Object).)
Public methodTryInvoke
Provides the implementation for operations that invoke an object. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.
(Inherited from DynamicObject.)
Public methodTryInvokeMember
Provides the implementation for operations that invoke a member. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.
(Inherited from DynamicObject.)
Public methodTrySetIndex
Provides the implementation for operations that set a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that access objects by a specified index.
(Inherited from DynamicObject.)
Public methodTrySetMember
Provides the implementation for operations that set member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
(Inherited from DynamicObject.)
Public methodTryUnaryOperation
Provides implementation for unary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as negation, increment, or decrement.
(Inherited from DynamicObject.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns true if the value represented by the instances are the same.
Public operatorStatic member(GraphNode to Vertex)
Converts this instance to a Vertex instance.
Public operatorStatic member(GraphNode to Edge)
Converts this instance to an Edge instance.
Public operatorStatic member(GraphNode to Path)
Converts this instance to a Path instance.
Public operatorStatic member(GraphNode to String)
Converts this instance to a string representation.
Public operatorStatic member(GraphNode to Int16)
Converts this instance to a short representation.
Public operatorStatic member(GraphNode to Int32)
Converts this instance to an int representation.
Public operatorStatic member(GraphNode to Int64)
Converts this instance to a long representation.
Public operatorStatic member(GraphNode to Single)
Converts this instance to a float representation.
Public operatorStatic member(GraphNode to Double)
Converts this instance to a long representation.
Public operatorStatic member(GraphNode to Boolean)
Converts this instance to a boolean representation.
Public operatorStatic memberInequality
Compares the values for inequality.
Top
Properties
  NameDescription
Public propertyIsArray
Returns true if the underlying value is an array.
Public propertyIsObjectTree
Returns true if the underlying value is an object tree.
Public propertyIsScalar
Returns true if the underlying value is a scalar value (string, double, boolean, ...).
Top
See Also