Class Element
A common base class for Graph elements.
Implements
System.IEquatable<Element>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Gremlin.Net.Structure
Assembly: cs.temp.dll.dll
Syntax
public abstract class Element : IEquatable<Element>
Constructors
Element(Object, String, Object[])
Initializes a new instance of the Element class.
Declaration
protected Element(object id, string label, dynamic[] properties = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | id | The id of the element. |
System.String | label | The label of the element. |
System.Object[] | properties | Optional properties of the element. |
Properties
Id
Gets the id of this Element.
Declaration
public object Id { get; }
Property Value
Type | Description |
---|---|
System.Object |
Label
Gets the label of this Element.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Properties
Gets the properties of this Element.
Declaration
public dynamic[] Properties { get; }
Property Value
Type | Description |
---|---|
System.Object[] |
Methods
Equals(Element)
Declaration
public bool Equals(Element other)
Parameters
Type | Name | Description |
---|---|---|
Element | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>