.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
Post a Comment