Beispiel #1
0
        private static JObject ToJObject(IObjectData value)
        {
            if (value == null)
            {
                return(null);
            }
            else
            {
                JsonObjectData obj = value as JsonObjectData;
                if (obj == null)
                {
                    throw new ArgumentException("The value is not created from this object.");
                }

                return(obj.jsonObject);
            }
        }
Beispiel #2
0
        public bool Equals(IObjectData obj)
        {
            JsonObjectData that = obj as JsonObjectData;

            return((that == null) ? false : JToken.DeepEquals(this.jsonObject, that.jsonObject));
        }