.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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -