public override void CreateAnswers(System.IO.StreamReader reader) { while (!reader.EndOfStream) { RKSumAnswer ans = new RKSumAnswer() { a = Array.ConvertAll(reader.ReadLine().Split(' '), sTemp => Convert.ToInt64(sTemp)) }; Answers.Add(ans); } }
public override Boolean Equals(Object obj) { RKSumAnswer Answer = obj as RKSumAnswer; if (Answer?.a?.Length != a?.Length) { return(false); } for (int i = 0; i < Answer.a.Length; i++) { if (Answer.a[i] != a[i]) { return(false); } } return(true); }