Interface with T as return type from extension methods

前端 未结 0 1137
予麋鹿
予麋鹿 2021-02-05 03:44

Maybe I am stuck in my point of view for this issue. I just want to eliminate need for cast (MyClass).

var c = (MyClass)new MyClass { }.MyExtensionMethod();


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题