コード例 #1
0
ファイル: QuestionBank.cs プロジェクト: MTN-Software/QuizLib
 static bool Equals(QuestionBank a, QuestionBank b)
 {
     if (a == null)
     {
         return(b == null);
     }
     if (b == null || a.QuestionList.Count != b.QuestionList.Count)
     {
         return(false);
     }
     for (int i = 0; i < a.QuestionList.Count; i++)
     {
         if (!object.Equals(a.QuestionList[i], b.QuestionList[i]))
         {
             return(false);
         }
     }
     return(true);
 }
コード例 #2
0
ファイル: QuestionBank.cs プロジェクト: MTN-Software/QuizLib
 static bool Equals(QuestionBank a, QuestionBank b)
 {
     if (a == null) return b == null;
     if (b == null || a.QuestionList.Count != b.QuestionList.Count) return false;
     for (int i = 0; i < a.QuestionList.Count; i++)
     {
         if (!object.Equals(a.QuestionList[i], b.QuestionList[i]))
             return false;
     }
     return true;
 }