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
operationDiffOperationThe operation to perform.
valuesIEnumerable<T>The sequence of values to operate on.
DiffElement(DiffOperation, IReadOnlyList<T>)
Creates a diff element.
public DiffElement(DiffOperation operation, IReadOnlyList<T> values)
Parameters
operationDiffOperationThe operation to perform.
valuesIReadOnlyList<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
otherDiffElement<T>A diff element to test for equality.
Returns
- bool
trueif this diff element equals the other diff element; otherwise,false.
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()