public int Compare(object x, object y)
{
if (IsNull(x) && IsNull(y))
{
return(0);
}
else if (IsNull(x))
{
return(-1);
}
else if (IsNull(y))
{
return(1);
}
ClientVersion a = x as ClientVersion;
ClientVersion b = y as ClientVersion;
if (IsNull(a) || IsNull(b))
{
throw new ArgumentException();
}
return(a.CompareTo(b));
}