C#
Expressions and OperatorsC# - Expressions and Operators
Operators Defined
Operator Precedence
How C# Determines Precedence
Left and Right Associativity
Practical Usage
C# Operators
Primary Expression Operators
typeof
sizeof
checked and unchecked
Mathematical Operators
Unary Operators
Compound Assignment Operators
Increment Operators and Decrement Operators
Relational Operators
Comparison Operators
Simple Assignment Operators
Summary
In this tutorial, we'll take a look at the most basic part of any programming language: its ability to express assignments and comparisons through the use of operators. We'll look at what operators are and how operator precedence is determined in C#, and then we'll delve into specific categories of expressions for doing such things as performing math, assigning values, and making comparisons between operands.