Literals
suggest changeSyntax
- bool: true or false
- byte: None, integer literal implicitly converted from int
- sbyte: None, integer literal implicitly converted from int
- char: Wrap the value with single-quotes
- decimal: M or m
- double: D, d, or a real number
- float: F or f
- int: None, default for integral values within the range of int
- uint: U or u. Without a suffix, an integer literal is
uintonly when its value fits inuintbut not inint - long: L or l. Without a suffix, an integer literal is
longonly when its value fits inlongbut in neitherintnoruint - ulong: UL, ul, Ul, uL, LU, lu, Lu, or lU. Without a suffix, an integer literal is
ulongonly when its value fits in no smaller integer type - short: None, integer literal implicitly converted from int
- ushort: None, integer literal implicitly converted from int
- string: Wrap the value with double-quotes, optionally prepended with
@ - null: The literal
null
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents