Is there an implication (logical sequence) operator in C#?
I can't find how to write the C#implication operator.
2
1 answers
No, there is no built-in implication operator in C#. It can be implemented using standard operators:
Implication: !a || b
,
Inverse implication: a || !b
.
Additional information: C# operators on msdn.
3
Author: bearpro, 2019-08-22 07:27:34