Stenway Developer Network

Assignment Statements

Assignment

a = 1
a.b = true
a.b.c = 2.5
a().b = false
MyCompany.MyLib\MyStaticClass1.a = null

Arithmetic

a += b
a -= b
a *= b
a /= b
a %= b

Bitwise

a &= b
a |= b
a ^= b
a <<= 4
a >>= 2

Boolean

a &= b
a |= b
a ^= b

String

a += b

Null-Default

s string?
s ??= "Default value"