I don't solve a particular problem, but experimenting with C# in general.
Currently, I'm wondering why for many primitive types (DateTime
, decimal
, float
, etc.) there are operator methods (==, >, +, etc.) that are visible via reflection, but there are no such operators for bool
and int
types.
I receive operators this way: How to call custom operator with Reflection
Is there an option to invoke such operators in runtime in the case of these types (int, bool)?
I am specifically interested in comparison operators (>
, >=
, ==,
, etc.), but I think the answer will be the same for all operators...