Removes old comparable/comparers. (#31)
This commit is contained in:
parent
513e54f70e
commit
a45094f2dc
23 changed files with 95 additions and 249 deletions
|
|
@ -22,7 +22,7 @@ using System;
|
|||
|
||||
namespace Server
|
||||
{
|
||||
public struct Serial : IComparable, IComparable<Serial>, IComparable<uint>
|
||||
public struct Serial : IComparable<Serial>, IComparable<uint>
|
||||
{
|
||||
public static readonly Serial MinusOne = new Serial(0xFFFFFFFF);
|
||||
public static readonly Serial Zero = new Serial(0);
|
||||
|
|
@ -72,17 +72,12 @@ namespace Server
|
|||
{
|
||||
return Value.GetHashCode();
|
||||
}
|
||||
|
||||
|
||||
public int CompareTo(Serial other)
|
||||
{
|
||||
return Value.CompareTo(other.Value);
|
||||
}
|
||||
|
||||
public int CompareTo(object obj)
|
||||
{
|
||||
return Value.CompareTo(obj);
|
||||
}
|
||||
|
||||
public int CompareTo(uint other)
|
||||
{
|
||||
return Value.CompareTo(other);
|
||||
|
|
@ -148,4 +143,4 @@ namespace Server
|
|||
return new Serial(a);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue