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); }
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; }