Order of Precedence for Expressions : Operator Precedence « Operator « C# / CSharp Tutorial

Home
C# / CSharp Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statement
5.String
6.struct
7.Class
8.Operator Overload
9.delegate
10.Attribute
11.Data Structure
12.Assembly
13.Date Time
14.Development
15.File Directory Stream
16.Preprocessing Directives
17.Regular Expression
18.Generic
19.Reflection
20.Thread
21.I18N Internationalization
22.LINQ
23.GUI Windows Forms
24.Windows Presentation Foundation
25.Windows Communication Foundation
26.Workflow
27.2D
28.Design Patterns
29.Windows
30.XML
31.XML LINQ
32.ADO.Net
33.Network
34.Directory Services
35.Security
36.unsafe
C# / C Sharp
C# / C Sharp by API
C# / CSharp Open Source
C# / CSharp Tutorial » Operator » Operator Precedence 
3.18.4.Order of Precedence for Expressions
Precedence            Operator

1                     array '[ ]', 
                      checked , 
                      function '()', 
                      member operator '.'
                      new, 
                      postfix decrement , 
                      postfix increment, 
                      typeof, 
                      and unchecked operators

2                     unary addition '+'
                      casting '()', 
                      one complement '~'
                      not '!'
                      prefix decrement, 
                      prefix increment, 
                      unary subtraction '-'operators

3                     division '/'
                      and modulus '%'
                      multiplication '*' operators

4                     binary addition '+' and binary subtraction '-' operators

5                     left-shift '<<' and right-shift '>>' operators

6                     as, 
                      is, 
                      less than '<'
                      less than or equal to '<=', 
                      greater than '>'
                      greater than or equal to '>=' operators

7                     equals '==' and not equal '!=' operators

8                     Logical And '&' operator

9                     Logical XOR '^' operator

10                    Logical Or '|' operator

11                    Conditional And '&&' operator

12                    Conditional Or '||' operator

13                    Conditional '?:' operator

14                    Assignment '='
                      compound '*=, /-=, %=, +=, -=, <<=, >>=, &=, ^=, and |=', 
                      and null coalescing '?' operator
3.18.Operator Precedence
3.18.1.The Precedence of the C# Operators
3.18.2.Operator precedence, with () and without ()
3.18.3.multiple arithmetic operators
3.18.4.Order of Precedence for Expressions
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.