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

.net, c#, operators

Solution

No, it is not possible. You would need to create a method instead

Problem

I know you can overload an existing operator. I want to know if it is possible to create a new operator. Here's my scenario. I want this: ``` var x = (y < z) ? y : z; ``` To be equivalent to this: ``` var x = y <? z; ``` In other words, I would like to create my own `<?` operator.

Original source

Related problems