-
12 votesanswersviews
F#和接口实现的成员
我有一个令人烦恼的错误 . type Animal = abstract member Name : string type Dog (name : string) = interface Animal with member this.Name : string = name let pluto = new Dog("P... -
12 votesanswersviews
在F#中调用基类显式接口方法
好的,我从基类 A 派生出一个 B 类型 . A 器具 IDisposable 明确的,但我必须做额外的清理工作在 B ,所以我实现 IDisposable 在 B : interface IDisposable with member i.Dispose() = // ... additional work base.Dispose() // <...