Table of Contents

Class Diff

Namespace
Tharga.Toolkit.Compare
Assembly
Tharga.Toolkit.Standard.dll

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

objectName string

The name or path of the first object.

otherObjectName string

The name or path of the second object.

message string

A description of the difference.

index int?

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

string

ObjectName

Gets the name or path of the first object in the comparison.

public string ObjectName { get; }

Property Value

string

OtherObjectName

Gets the name or path of the second object in the comparison.

public string OtherObjectName { get; }

Property Value

string