You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,7 +26,7 @@ When an operand occurs between two operators with the same precedence, the *asso
25
26
26
27
Precedence and associativity can be controlled using parentheses. For example, `x + y * z` first multiplies `y` by `z` and then adds the result to `x`, but `(x + y) * z` first adds `x` and `y` and then multiplies the result by `z`.
27
28
28
-
Most operators can be *overloaded*. Operator overloading permits user-defined operator implementations to be specified for operations where one or both of the operands are of a user-defined `class` or `struct` type.
29
+
Most operators can be *overloaded*. Operator overloading permits user-defined operator implementations to be specified for operations where one or both of the operands are of a user-defined class or struct type.
29
30
30
31
The following summarizes C#’s operators, listing the operator categories in order of precedence from highest to lowest. Operators in the same category have equal precedence. Under each category is a list of expressions in that category along with the description of that expression type.
31
32
@@ -39,7 +40,7 @@ The following summarizes C#’s operators, listing the operator categories in or
39
40
- `new T(...){...}`: Object creation with initializer
40
41
- `new {...}`: Anonymous object initializer
41
42
- `new T[...]`: Array creation
42
-
- `typeof(T)`: Obtain `System.Type` object for `T`
43
+
- `typeof(T)`: Obtain @System.Type object for `T`
43
44
- `checked(x)`: Evaluate expression in checked context
44
45
- `unchecked(x)`: Evaluate expression in unchecked context
0 commit comments