Struct DiffElement<T>

Namespace
Pixie
Assembly
Pixie.dll

An element of a diff.

public struct DiffElement<T> : IEquatable<DiffElement<T>>

Type Parameters

T
Implements
Inherited Members

Constructors

DiffElement(DiffOperation, IEnumerable<T>)

Creates a diff element.

public DiffElement(DiffOperation operation, IEnumerable<T> values)

Parameters

operation DiffOperation

The operation to perform.

values IEnumerable<T>

The sequence of values to operate on.

DiffElement(DiffOperation, IReadOnlyList<T>)

Creates a diff element.

public DiffElement(DiffOperation operation, IReadOnlyList<T> values)

Parameters

operation DiffOperation

The operation to perform.

values IReadOnlyList<T>

The sequence of values to operate on.

Properties

Operation

Gets the operation this diff element performs.

public readonly DiffOperation Operation { get; }

Property Value

DiffOperation

The operation it performs.

Values

Gets the sequence of values this diff element inserts, deletes or leaves unchanged.

public readonly IReadOnlyList<T> Values { get; }

Property Value

IReadOnlyList<T>

The sequence of values.

Methods

Equals(DiffElement<T>)

Tests if this diff elements equals another diff element.

public bool Equals(DiffElement<T> other)

Parameters

other DiffElement<T>

A diff element to test for equality.

Returns

bool

true if this diff element equals the other diff element; otherwise, false.

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string