예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (ExerciseInitialCode != null ? ExerciseInitialCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExpectedOutput != null ? ExpectedOutput.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HintsMd != null ? HintsMd.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ExerciseInitialCode?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ExpectedOutput?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (HintsMd?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }