/// <summary> /// Create a new property vertex wrapper for JavaScript. /// </summary> /// <param name="Vertex">The internal vertex.</param> /// <param name="JavaScriptEngine">An instance of a JavaScript engine.</param> public JSPropertyVertex(IGenericPropertyVertex<String, Int64, String, String, Object, String, Int64, String, String, Object, String, Int64, String, String, Object, String, Int64, String, String, Object> Vertex, ScriptEngine JavaScriptEngine) : base(Vertex, JavaScriptEngine) { }
/// <summary> /// Serialize a single vertex. /// </summary> /// <param name="Vertex">A single vertex.</param> /// <returns>The serialized vertex.</returns> protected override Byte[] VertexSerialization(IGenericPropertyVertex<UInt64, Int64, String, String, Object, UInt64, Int64, String, String, Object, UInt64, Int64, String, String, Object, UInt64, Int64, String, String, Object> Vertex) { return new JObject( new JProperty("PropertyVertex", new JObject( from KeyValuePair in Vertex select new JProperty(KeyValuePair.Key, KeyValuePair.Value) ) ) ).ToString(). ToUTF8Bytes(); }
/// <summary> /// Serialize a single vertex. /// </summary> /// <param name="Vertex">A single vertex.</param> /// <returns>The serialized vertex.</returns> protected virtual Byte[] VertexSerialization(IGenericPropertyVertex<UInt64, Int64, String, String, Object, UInt64, Int64, String, String, Object, UInt64, Int64, String, String, Object, UInt64, Int64, String, String, Object> Vertex) { return null; }