예제 #1
0
        public JsonObject WithObject()
        {
            var jsonObject = new JsonObject();
            this.Values.Add(jsonObject);

            return jsonObject;
        }
예제 #2
0
        public JsonObject ContainingObject(string childName)
        {
            var jsonObject = new JsonObject(childName);
            this.values.Add(jsonObject);

            return jsonObject;
        }
예제 #3
0
        public JsonObject WithObject(string elementName)
        {
            var newElement = new JsonObject(elementName);

            this.objects.Add(newElement);

            return newElement;
        }
예제 #4
0
 public JsonCollection WithObject(JsonObject jsonObject)
 {
     this.Values.Add(jsonObject);
     return this;
 }
예제 #5
0
 /// <summary>
 /// Adds the given object as child and returns reference of this instance.
 /// </summary>
 /// <param name="jsonObject">The json object which is part of this instance.</param>
 /// <returns>Reference of this object, not of the added child!</returns>
 public JsonObject ContainingObject(JsonObject jsonObject)
 {
     this.values.Add(jsonObject);
     return this;
 }