问答题

【参考答案】

需要实现IEnumerable接口和GetEnumerator()方法。