コード例 #1
0
ファイル: Difference.cs プロジェクト: bpe78/JsonComparer
 public Difference(DifferenceTypes type, string property, JsonObject left, JsonObject right)
 {
     DifferenceType = type;
     PropertyName   = property;
     LeftNode       = left;
     RightNode      = right;
 }
コード例 #2
0
ファイル: Difference.cs プロジェクト: S9yN37/ObjectsComparer
 /// <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;
 }