这是一个泛类的例子,程序中逻辑都很清晰,运行报错:
错误 1 “Ch12Ex04.Farm<T>”不会实现接口成员“System.Collections.IEnumerable.GetEnumerator()”。“Ch12Ex04.Farm<T>.GetEnumerator()”或者是静态、非公共的,或者有错误的返回类型。 D:\MyStuday\c#8472_Source_Code8472_Chapter12\Code\Ch12Ex04\Ch12Ex04\Farm.cs 11 17 Ch12Ex04 错误 1 “Ch12Ex04.Far
错误 1 “Ch12Ex04.Farm<T>”不会实现接口成员“System.Collections.IEnumerable.GetEnumerator()”。“Ch12Ex04.Farm<T>.GetEnumerator()”或者是静态、非公共的,或者有错误的返回类型。 D:\MyStuday\c#8472_Source_Code8472_Chapter12\Code\Ch12Ex04\Ch12Ex04\Farm.cs 11 17 Ch12Ex04 错误 1 “Ch12Ex04.Far