C# edit

Operators

ParameterDescription
operatorSymbolThe operator being overloaded, e.g. +, -, /, *
OperandTypeThe type that will be returned by the overloaded operator.
operand1The first operand to be used in performing the operation.
operand2The second operand to be used in performing the operation, when doing binary operations.
statementsOptional code needed to perform the operation before returning the result.

In C#, an operator is a program element that is applied to one or more operands in an expression or statement. Operators that take one operand, such as the increment operator (++) or new, are referred to as unary operators. Operators that take two operands, such as arithmetic operators (+,-,*,/), are referred to as binary operators. One operator, the conditional operator (?:), takes three operands and is the sole ternary operator in C#.

Syntax

 

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Table Of Contents
3 Operators
22 Enum
25 GUID
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close