.net - Is it possible to create a new operator in c#? -


I know that you can overload the existing operator. I want to know whether it is possible to create a new operator. This is my scenario.

I want to:

  var x = (y & lt; z)? Y: z;  

To be equal to:

  var x = y  

In other words, I have my own & lt ;? operator

No, this is not possible. You will need to create a method instead of


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -