Class GraphSONUtil
Provides helper methods for GraphSON serialization.
Inheritance
System.Object
GraphSONUtil
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 static class GraphSONUtil
Methods
FormatTypeName(String, String)
Formats a type name with its prefix to a GraphSON TypeID.
Declaration
public static string FormatTypeName(string namespacePrefix, string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | namespacePrefix | The namespace prefix (default is "g"). |
System.String | typeName | The name of the type. |
Returns
Type | Description |
---|---|
System.String | The formatted TypeID. |
ToTypedValue(String, Object, String)
Transforms a value intos its GraphSON representation including type information.
Declaration
public static Dictionary<string, dynamic> ToTypedValue(string typename, dynamic value, string prefix = "g")
Parameters
Type | Name | Description |
---|---|---|
System.String | typename | The name of the type. |
System.Object | value | The value to transform. |
System.String | prefix | A namespace prefix for the typename. |
Returns
Type | Description |
---|---|
Dictionary<System.String, System.Object> | The GraphSON representation including type information. |