예제 #1
0
파일: optimizer.cs 프로젝트: bigwa/qpmodel
 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();