示例#1
0
 public override int GetHashCode()
 {
     if (logic_ != null)
     {
         return(logic_.GetHashCode());
     }
     if (physic_ != null)
     {
         return(physic_.GetHashCode());
     }
     throw new InvalidProgramException();
 }
示例#2
0
 public override int GetHashCode() =>
 (targetIndex) ^ target.GetHashCode();