System.IComparable.CompareTo(TTime)

Here are the examples of the csharp api System.IComparable.CompareTo(TTime) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : WorkItemBase.cs
with MIT License
from reaqtive

public int CompareTo(WorkItemBase<TTime> other)
        {
            if (other == null)
            {
                return 1;
            }

            int c = DueTime.CompareTo(other.DueTime);
            if (c != 0)
            {
                return c;
            }

            return Priority.CompareTo(other.Priority);
        }