Table of Contents

Class Element

Namespace
Gremlin.Net.Structure
Assembly
Gremlin.Net.dll

A common base class for Graph elements.

public abstract class Element : IEquatable<Element>
Inheritance
Element
Implements
Derived
Inherited Members

Constructors

Element(object?, string, dynamic[]?)

Initializes a new instance of the Element class.

protected Element(object? id, string label, dynamic[]? properties = null)

Parameters

id object

The id of the element.

label string

The label of the element.

properties dynamic[]

Optional properties of the element.

Properties

Id

Gets the id of this Element.

public object? Id { get; }

Property Value

object

Label

Gets the label of this Element.

public string Label { get; }

Property Value

string

Properties

Gets the properties of this Element.

public dynamic[]? Properties { get; }

Property Value

dynamic[]

Methods

Equals(Element?)

public bool Equals(Element? other)

Parameters

other Element

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int