Пример #1
0
 public Difference(DifferenceTypes type, string property, JsonObject left, JsonObject right)
 {
     DifferenceType = type;
     PropertyName   = property;
     LeftNode       = left;
     RightNode      = right;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Difference" /> class.
 /// </summary>
 /// <param name="memberPath">Member Path.</param>
 /// <param name="value1">Value of the first object, converted to string.</param>
 /// <param name="value2">Value of the second object, converted to string.</param>
 /// <param name="differenceType">Type of the difference.</param>
 public Difference(string memberPath, string value1, string value2,
                   DifferenceTypes differenceType = DifferenceTypes.ValueMismatch)
 {
     MemberPath     = memberPath;
     Value1         = value1;
     Value2         = value2;
     DifferenceType = differenceType;
 }