源代码是
这次没有拼写错误了
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace Donis.CSharter
{
  public class Starter
  {
  static void Main()
  {
  SimpleCollention simple = new SimpleCollention(new object[] { 1, 2, 3, 4, 5, 6, 7 });
  IEnumerator enumerator = simple.GetEnumertor();
  while (enumerator.MoveNext())
  {
  Console.WriteLine(enumerator.Current);
  }
  }
  }
  public class SimpleCollention : IEnumerable
  {
  public SimpleCollention(object[] array)
  {
  items = array;
  }
  public IEnumerator GetEnumertor()
  {
  return new Enumerator(items);
  }
  private class Enumerator : IEnumerator
  {
  public Enumerator(object[] items)
  {
  elements = new object[items.Length];
  Array.Copy(items, elements, items.Length);
  cursor = -1;
  }
  public bool MoveNext()
  {
  ++cursor;
  if (cursor > (elements.Length - 1))
  {
  return false;
  }
  return true;
  }
  public void Rest()
  {
  cursor = -1;
  }
  public object Current
  {
  get
  {
  if (cursor > (elements.Length - 1))
  {
  throw new InvalidOperationException(
  "Enumeration already finished");
  }
  if (cursor == 1)
  {  throw new InvalidOperationException("Enumertion net astared");
  }
  return elements[cursor];
  }
  }
  private int cursor;
  private object[] elements = null;
  }
  private object[] items = null;
  }

出现如下错误
新手解决不了
错误 1 “Donis.CSharter.SimpleCollention”不实现接口成员“System.Collections.IEnumerable.GetEnumerator()” D:\csarp\7.1.2.2\7.1.2.2\Program.cs 23 18 7.1.2.2
错误 2 “Donis.CSharter.SimpleCollention.Enumerator”不实现接口成员“System.Collections.IEnumerator.Reset()” D:\csarp\7.1.2.2\7.1.2.2\Program.cs 34 23 7.1.2.2