开发者

implement some methods of interface explicitly and some methods implicitly

can i implement some methods of an inte开发者_开发百科rface explicitly and some methods implicityly in C#?


Yes, as long the compiler can resolve all the methods, there's no issue with mixing. I do this every once in a while just because I have to explicitly implement something it can't resolve for some edge case, but the implicit members continue to work just fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜