int SortNetworkStates(NetworkState x, NetworkState y) { if (System.Object.ReferenceEquals(x, y)) { return(0); } var cmp = x.GetType().FullName.CompareTo(y.GetType().FullName); if (cmp == 0) { throw new Exception("Two instances of the same network state are attached to the same actor (" + x.GetType().FullName + " and " + y.GetType().FullName + ")"); } return(cmp); }
int SortNetworkStates(NetworkState x, NetworkState y) { if (System.Object.ReferenceEquals(x, y)) return 0; var cmp = x.GetType().FullName.CompareTo(y.GetType().FullName); if (cmp == 0) { throw new Exception("Two instances of the same network state are attached to the same actor (" + x.GetType().FullName + " and " + y.GetType().FullName + ")"); } return cmp; }