JSONObject.Merge C# (CSharp) Method

Merge() public method

public Merge ( JSONObject, obj ) : void
obj JSONObject,
return void
	public void Merge(JSONObject obj)
	{
		MergeRecur(this, obj);
	}
	/// <summary>

Usage Example

Example #1
0
    public JSONObject Copy()
    {
        //return JSONParser.parse(print()); //this is slower than your grandma

        JSONObject xCopy = new JSONObject(type);

        xCopy.Merge(this);              //simple, eh. but a 100 times faster because it won't torture the f****n' garbage collector!

        return(xCopy);
    }
All Usage Examples Of JSONObject::Merge