Class MimeType.SpecificityComparator<T>
public class MimeType.SpecificityComparator<T> : IComparer<T> where T : MimeType
Type Parameters
T
- Inheritance
-
MimeType.SpecificityComparator<T>
- Implements
-
IComparer<T>
- Inherited Members
Methods
Compare(T, T)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(T mimeType1, T mimeType2)
Parameters
mimeType1TmimeType2T
Returns
- int
A signed integer that indicates the relative values of
xandy, as shown in the following table.Value Meaning Less than zero xis less thany.Zero xequalsy.Greater than zero xis greater thany.
CompareParameters(T, T)
protected int CompareParameters(T mimeType1, T mimeType2)
Parameters
mimeType1TmimeType2T