^: practical reference
^: practical reference: ^ creates an Index measured from the end, where ^1 denotes the last element.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
^: 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.
!: practical reference: Postfix ! suppresses a nullable-analysis warning without changing the runtime value.
..: practical reference: .. creates a Range from optional Index bounds for slicing a supported type.
%: practical reference: % returns the remainder after division; for signed values its sign follows the left operand.
%=: practical reference: %= computes a remainder and assigns it to the left operand.
>>: practical reference: >> shifts bits right; for signed operands it performs an arithmetic shift that propagates the sign bit.
>>=: practical reference: >>= shifts right and assigns the result to the left location.