views:

197

answers:

1

Does anyone have a exhaustive list of the names that C#/CLR gives to operators? (Maybe my lack of sleep is kicking in, but I can't seem to find it on Google) E.g. op_Addition, op_Subtraction. Furthermore is there any chance that these would be different in other cultures?

I am trying to create a class that can add/subtract etc. two objects and I have done all the primitives - I just need to do the 'rest'.

Many thanks.

+5  A: 

Here is the full list of overloadable operators from MSDN.

--- EDIT ---

In response to your comment, I believe what you want is here. Search for Table 6-1.

Reed Copsey
I know, but I need the actual method names in the final assembly, like op_Addition... Maybe I will go implement them all and reflect.
Jonathan C Dickinson
Jonathan, I believe the new link above has what you want.
Reed Copsey
perfect! many thanks!
Jonathan C Dickinson