public static JSONResult ToJSONResult(JSONDocument document) { JSONResult result = new JSONResult(); result.Key = document.Key; result._values = document.ToDictionary(); return(result); }
public override int CompareTo(object obj) { if (obj is JSONResult) { if (SortField != null) { JSONResult target = (JSONResult)obj; return(SortField.CompareTo(target.SortField)); } throw new ArgumentException(); } throw new ArgumentException(); }
public override bool Equals(object obj) { if (obj is JSONResult) { if (SortField != null) { JSONResult target = (JSONResult)obj; return(SortField.Equals(target.SortField)); } return(base.Equals(obj)); } return(false); }