Filter.CompareTo
Contents
[
Hide
]Filter.CompareTo method
Compares this instance to the specified instance of the Filter
class and returns an indication of their relative order.
public int CompareTo(Filter other)
Parameter | Type | Description |
---|---|---|
other | Filter | the specified instance of the Filter class to compare to this object. |
Return Value
an indication of their relative order.
Examples
Shows how to check filter equality.
var project = new Project(DataDir + "ReadFilterDefinitionData.mpp");
List<Filter> filters = project.TaskFilters.ToList();
var filter1 = filters[0];
var filter2 = filters[1];
// the equality of filters is checked against to filter's UID.
Console.WriteLine("Filter 1 UID: " + filter1.Uid);
Console.WriteLine("Filter 2 UID: " + filter2.Uid);
Console.WriteLine("Are filters equal: " + filter1.Equals(filter2));
See Also
- class Filter
- namespace Aspose.Tasks
- assembly Aspose.Tasks