示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)State;
         hashCode = hashCode * 397 ^ Config.GetHashCode();
         hashCode = hashCode * 397 ^ CanSuspend.GetHashCode();
         hashCode = hashCode * 397 ^ CanUnload.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)State;
         hashCode = (hashCode * 397) ^ (ModId != null ? ModId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CanSuspend.GetHashCode();
         hashCode = (hashCode * 397) ^ CanUnload.GetHashCode();
         return(hashCode);
     }
 }