JSONTools.JSONObject.GetPreviousObject C# (CSharp) Method

GetPreviousObject() public method

public GetPreviousObject ( ) : JSONObject
return JSONObject
        public JSONObject GetPreviousObject()
        {
            if (this.Index == -1) { return this; }
            else if (this.Index == 0) { return this.Parent; }
            else { return GetLastObject(this.Parent.ChildJSONObjects[this.Index - 1]); }
        }