Class Diff
Represents a difference found during a deep comparison between two objects.
public class Diff : IDiff
- Inheritance
-
Diff
- Implements
- Inherited Members
- Extension Methods
Constructors
Diff(string, string, string, int?)
Initializes a new instance of the Diff class.
public Diff(string objectName, string otherObjectName, string message, int? index)
Parameters
objectNamestringThe name or path of the first object.
otherObjectNamestringThe name or path of the second object.
messagestringA description of the difference.
indexint?The collection index where the difference was found, or null if not applicable.
Properties
Index
Gets the collection index where the difference was found, or null if not applicable.
public int? Index { get; }
Property Value
- int?
Message
Gets a description of the difference.
public string Message { get; }
Property Value
ObjectName
Gets the name or path of the first object in the comparison.
public string ObjectName { get; }
Property Value
OtherObjectName
Gets the name or path of the second object in the comparison.
public string OtherObjectName { get; }