c# - Is there a variable type for comparators? -


is there variable type (something string, int, or bool) comparators? (==, !=, <=, >=, >, <) , if not, how c# use them?

i can use

int integervariable = 0; 

but there can use do

comp comparatorvariable = ==; 

?

the various operators you've listed not have type no. objects have types. you've listed operators, not objects, , have no type. if you're interested in how c# language uses operators, can @ language spec; section 7.3 of c# 5.0 specs titled "operators" , filled information on how c# handles operators.


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -