public int Compare(object obj1, object obj2)
{
GameResource rsx1, rsx2;
if (obj1 is GameResource)
rsx1 = obj1 as GameResource;
else
throw new ArgumentException("Object is not of type \"GameResource\"");
if (obj2 is GameResource)
rsx2 = obj2 as GameResource;
else
throw new ArgumentException("Object is not of type \"GameResource\"");
return rsx1.CompareTo(rsx2);
}