Search Results for

    Show / Hide Table of Contents

    Class TimeSpanComparer

    Compares two time spans determining relation between them.
    Inheritance
    object
    TimeSpanComparer
    Implements
    IComparer<ITimeSpan>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Interaction
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class TimeSpanComparer : IComparer<ITimeSpan>

    Methods

    Compare(ITimeSpan, ITimeSpan)

    Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
    Declaration
    public int Compare(ITimeSpan x, ITimeSpan y)
    Parameters
    Type Name Description
    ITimeSpan x The first object to compare.
    ITimeSpan y The second object to compare.
    Returns
    Type Description
    int A signed integer that indicates the relative values of x and y, as shown in the following table.
    ValueMeaning
    Less than zerox is less than y
    Zerox equals y
    Greater than zerox is greater than y

    Implements

    IComparer<T>
    In this article
    Back to top 2024 / Generated by DocFX