X hits on this document

993 views

0 shares

0 downloads

0 comments

20 / 396

Chapter ‎18   Unsafe code

Category

Expression

Description

Primary

x.m

Member access

x(...)

Method and delegate invocation

x[...]

Array and indexer access

x++

Post-increment

x--

Post-decrement

new T(...)

Object and delegate creation

new T[...]

Array creation

typeof(T)

Obtain System.Type object for T

checked(x)

Evaluate expression in checked context

unchecked(x)

Evaluate expression in unchecked context

Unary

+x

Identity

-x

Negation

!x

Logical negation

~x

Bitwise negation

++x

Pre-increment

--x

Pre-decrement

(T)x

Explicitly convert x to type T

Multiplicative

x * y

Multiplication

x / y

Division

x % y

Remainder

Additive

x + y

Addition, string concatenation, delegate combination

x – y

Subtraction, delegate removal

Shift

x << y

Shift left

x >> y

Shift right

Relational and type testing

x < y

Less than

x > y

Greater than

x <= y

Less than or equal

x >= y

Greater than or equal

x is T

Return true if x is a T, false otherwise

x as T

Return x typed as T, or null if x is not a T

Equality

x == y

Equal

x != y

Not equal

Logical AND

x & y

Integer bitwise AND, boolean logical AND

Copyright Microsoft Corporation 1999-2003. All Rights Reserved.7

Document info
Document views993
Page views993
Page last viewedFri Dec 09 08:43:09 UTC 2016
Pages396
Paragraphs9401
Words133190

Comments