Example #1
0
 public override void WriteValue(string type, string key, object value)
 {
     try
     {
         G.writeObjectField(key, value);                                // todo individual fields
     }
     catch (IOException e)
     {
         throw new WebApplicationException(e);
     }
 }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void writeProperties(org.codehaus.jackson.JsonGenerator out, org.neo4j.graphdb.PropertyContainer container) throws java.io.IOException
        private void WriteProperties(JsonGenerator @out, PropertyContainer container)
        {
            @out.writeObjectFieldStart("properties");
            try
            {
                foreach (KeyValuePair <string, object> property in container.AllProperties.SetOfKeyValuePairs())
                {
                    @out.writeObjectField(property.Key, property.Value);
                }
            }
            finally
            {
                @out.writeEndObject();
            }
        }