How can i obtain in C# a specific operator's function?
- by Silviu
Is it possible to obtain the function behind a C# operator?
For example in F# you can do
let add = (+);;
val add : (int -> int -> int)
Is it possible in c# to do something like this:
Func<int, int, int> add = (+);
or
Func<int, int, int> add = Int32.(+)
?