我想创建自己的自定义集合类型。
我将我的收藏定义为:
type A(collection : seq<string>) =
member this.Collection with get() = collection
interface seq<string> with
member this.GetEnumerator() = this.Collection.GetEnumerator()
但这不能编译No implementation was given for 'Collections.IEnumerable.GetEnumerator()
我该怎么做呢?