Class GraphSONReader
Allows to deserialize GraphSON to objects.
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Gremlin.Net.Structure.IO.GraphSON
Assembly: cs.temp.dll.dll
Syntax
public abstract class GraphSONReader
Constructors
GraphSONReader()
Initializes a new instance of the GraphSONReader class.
Declaration
protected GraphSONReader()
GraphSONReader(IReadOnlyDictionary<String, IGraphSONDeserializer>)
Initializes a new instance of the GraphSONReader class.
Declaration
protected GraphSONReader(IReadOnlyDictionary<string, IGraphSONDeserializer> deserializerByGraphSONType)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyDictionary<System.String, IGraphSONDeserializer> | deserializerByGraphSONType | IGraphSONDeserializer deserializers identified by their GraphSON type. |
Fields
Deserializers
Contains the IGraphSONDeserializer instances by their type identifier.
Declaration
protected readonly Dictionary<string, IGraphSONDeserializer> Deserializers
Field Value
Type | Description |
---|---|
Dictionary<System.String, IGraphSONDeserializer> |
Methods
ToObject(IEnumerable<JToken>)
Deserializes a GraphSON collection to an object.
Declaration
public virtual dynamic ToObject(IEnumerable<JToken> graphSonData)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<JToken> | graphSonData | The GraphSON collection to deserialize. |
Returns
Type | Description |
---|---|
System.Object | The deserialized object. |
ToObject(JToken)
Deserializes GraphSON to an object.
Declaration
public virtual dynamic ToObject(JToken jToken)
Parameters
Type | Name | Description |
---|---|---|
JToken | jToken | The GraphSON to deserialize. |
Returns
Type | Description |
---|---|
System.Object | The deserialized object. |