Compares the age of this checkpoint to the other checkpoint.

C# | Visual Basic | Visual C++ |
int CompareAge( ITextSourceVersion other )
Function CompareAge ( _ other As ITextSourceVersion _ ) As Integer
int CompareAge( ITextSourceVersion^ other )

- other (ITextSourceVersion)

-1 if this version is older than other.
0 if this version instance represents the same version as other.
1 if this version is newer than other.

This method is thread-safe.

Exception | Condition |
---|---|
ArgumentException | Raised if 'other' belongs to a different document than this version. |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238