Пример #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();