/=: practical reference
/=: practical reference: /= divides and assigns the result under compound-assignment rules.
CKTIS / C#
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
/=: practical reference: /= divides and assigns the result under compound-assignment rules.
The expression array[index] reads or changes an array element. Square brackets [] also provide indexer access; the meaning of their arguments then depends on the particular type.
==: practical reference: == compares according to the operator defined for the operand types.
>=: practical reference: >= tests whether the left operand is greater than or equal under the type's ordering operator.
>: practical reference: > tests whether the left operand is strictly greater.
++: practical reference: ++ increases a variable by one; prefix yields the new value and postfix the old value.
^: practical reference: ^ creates an Index measured from the end, where ^1 denotes the last element.
!=: practical reference: != negates the equality semantics of the operator defined for the type.
is: practical reference: is tests a type or pattern and can bind a narrowed variable; a simple type test returns false, rather than throwing InvalidCastException, for null or a type mismatch.
=>: practical reference: The => operator creates a lambda expression or separates a pattern from its result in a switch expression.
<<: practical reference: << shifts bits left and fills the vacated low positions with zeros.
<<=: practical reference: <<= shifts the left operand and assigns the converted result back to its type.
<=: practical reference: <= tests whether the left operand is not greater under the type's ordering operator.
<: practical reference: < tests whether the left operand strictly precedes the right operand.
&&: practical reference: && returns true only for two true operands and skips the right side after a false left side.
!: practical reference: ! negates a bool or calls an overloaded operator; postfix ! separately means null-forgiving.
||: practical reference: || returns true after the first true operand and skips the right side.
The dot selects a member of an object or type and forms qualified names. Learn the difference between property access, method invocation, and conditional access when a receiver is null.
*: practical reference: * multiplies numbers, dereferences a pointer in unary unsafe use, or invokes an overload.
*=: practical reference: *= multiplies and assigns under compound-assignment conversion rules.
nameof: practical reference: nameof produces a symbol's name as a compile-time string without evaluating the symbol.
??: practical reference: ?? returns its left operand when non-null and otherwise lazily evaluates the right operand.
??=: practical reference: ??= assigns the right value only when the left location is null.
?.: practical reference: ?. and ?[] stop a continuous access chain at null and return null.