开发者

implement some methods of interface explicitly and some methods implicitly

开发者 https://www.devze.com 2022-12-21 21:06 出处:网络
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

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

精彩评论

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

关注公众号