Example #1
0
 public static string ToJson(this IPICObject obj, bool indented = false)
 => indented
     ? Newtonsoft.Json.JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.Indented)
     : Newtonsoft.Json.JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.None);
Example #2
0
 public bool Equal(IPICObject obj)
 => this.ToJson().ComputeHashString().Equals(obj.ToJson().ComputeHashString());
Example #3
0
 public bool Equal(IPICObject obj)
 {
     throw new NotImplementedException();
 }