Is it possible define an extension operator method?

前端 未结 10 817
迷失自我
迷失自我 2021-01-04 02:09

is it possible to define an extension method that at the same time is an operator? I want for a fixed class add the possibility to use a known operator that actually can\'t

10条回答
  •  粉色の甜心
    2021-01-04 02:35

    Currently this is not supported because Extension methods are defined in separate static class and static classes cannot have operator overloading definitions.

提交回复
热议问题