Table of Contents

Interface IReportRevisionKey

Namespace
Cryville.EEW.Report
Assembly
Cryville.EEW.dll
Represents a key identifying the revision of a report.
public interface IReportRevisionKey : IComparable<IReportRevisionKey>
Inherited Members

Remarks

Implement CompareTo(T) to determine the precedence of the revision keys. By default, the precedence is determined by the following logic.

  1. Revision keys with IsCancellation being true is the latest revision.
  2. Otherwise, revision keys with a non-null Serial is the latest revision.
  3. Otherwise, revision keys with a greater Serial is the latest revision.

Properties

IsCancellation

Whether the revision is for cancellation.
bool IsCancellation { get; }

Property Value

bool

IsFinalRevision

Whether the revision is the final revision.
bool IsFinalRevision { get; }

Property Value

bool

Serial

The serial number of the revision.
int? Serial { get; }

Property Value

int?

Methods

IsComparableWith(IReportRevisionKey)

Determines whether the revision key is comparable with the specified revision key.
bool IsComparableWith(IReportRevisionKey other)

Parameters

other IReportRevisionKey
The other revision key.

Returns

bool
Whether the revision key is comparable with the specified revision key.