继续
This commit is contained in:
@@ -123,18 +123,4 @@ namespace SLSFramework.General
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实现该接口的类可以根据优先级进行比较和排序。
|
||||
/// 数字越大优先级越高。
|
||||
/// </summary>
|
||||
public interface IPrioritized : IComparable<IPrioritized>
|
||||
{
|
||||
int Priority { get; }
|
||||
|
||||
int IComparable<IPrioritized>.CompareTo(IPrioritized other)
|
||||
{
|
||||
return other.Priority.CompareTo(Priority);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user