public override bool Equals(object obj)
{
if (obj is ResourceId && obj == this)
return true;
if (obj is ResourceId && (obj as ResourceId).GetHashCode() == GetHashCode())
return true;
return false;
}