Beispiel #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private static void packMapWithNullKey(org.neo4j.bolt.messaging.Neo4jPack_Packer packer) throws java.io.IOException
        private static void PackMapWithNullKey(Org.Neo4j.Bolt.messaging.Neo4jPack_Packer packer)
        {
            packer.PackMapHeader(2);
            packer.Pack("key1");
            packer.Pack(ValueUtils.of(null));
            packer.Pack(ValueUtils.of(null));
            packer.Pack("value1");
        }
Beispiel #2
0
        private static MapValue Params(string bookmark, object bookmarks)
        {
            MapValueBuilder builder = new MapValueBuilder();

            if (!string.ReferenceEquals(bookmark, null))
            {
                builder.Add("bookmark", ValueUtils.of(bookmark));
            }
            builder.Add("bookmarks", ValueUtils.of(bookmarks));
            return(builder.Build());
        }
Beispiel #3
0
 private static MapValue SingletonMap(string key, object value)
 {
     return(VirtualValues.map(new string[] { key }, new AnyValue[] { ValueUtils.of(value) }));
 }