Example #1
0
 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);
 }
Example #2
0
 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;
 }