Class CompareResult
- Namespace
- ComOfficeKit
- Assembly
- ComOfficeKit.dll
What Compare(string, string, string, string?) found.
public sealed record CompareResult : IEquatable<CompareResult>
- Inheritance
-
CompareResult
- Implements
- Inherited Members
Constructors
CompareResult(bool, int, int, bool, bool)
What Compare(string, string, string, string?) found.
public CompareResult(bool Identical, int Insertions, int Deletions, bool OriginalHadRevisions, bool RevisedHadRevisions)
Parameters
IdenticalboolThe two read the same, and nothing was written.
InsertionsintHow many insertions the result tracks.
DeletionsintHow many deletions the result tracks.
OriginalHadRevisionsboolThe original had tracked changes, which were compared as accepted.
RevisedHadRevisionsboolThe revised document had tracked changes, which were compared as accepted.
Properties
Deletions
How many deletions the result tracks.
public int Deletions { get; init; }
Property Value
Identical
The two read the same, and nothing was written.
public bool Identical { get; init; }
Property Value
Insertions
How many insertions the result tracks.
public int Insertions { get; init; }
Property Value
OriginalHadRevisions
The original had tracked changes, which were compared as accepted.
public bool OriginalHadRevisions { get; init; }
Property Value
RevisedHadRevisions
The revised document had tracked changes, which were compared as accepted.
public bool RevisedHadRevisions { get; init; }
Property Value
Methods
Deconstruct(out bool, out int, out int, out bool, out bool)
public void Deconstruct(out bool Identical, out int Insertions, out int Deletions, out bool OriginalHadRevisions, out bool RevisedHadRevisions)
Parameters
Equals(CompareResult?)
public bool Equals(CompareResult? other)
Parameters
otherCompareResult
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CompareResult?, CompareResult?)
public static bool operator ==(CompareResult? left, CompareResult? right)
Parameters
leftCompareResultrightCompareResult
Returns
operator !=(CompareResult?, CompareResult?)
public static bool operator !=(CompareResult? left, CompareResult? right)
Parameters
leftCompareResultrightCompareResult