Literals:
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, u, or integral values within the range of uint
- long: L, l, or integral values within the range of long
- ulong: UL, ul, Ul, uL, LU, lu, Lu, lU, or integral values within the range of ulong
- 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
1Literals
17Regex
18DateTime
19Arrays
21Enum
22Tuples
24GUID
27Looping
36Casting
46Methods
51Keywords
57Generics
79Overflow
88Events
92Structs
102Polymorphism
103Immutability
104Indexer
106Stream
107Timers
108Stopwatches
109Threading
111Async Await
123ICloneable
124IComparable
126Using SQLite
127Caching
135Pointers
145Cryptography
147C# Script
155Contributors