Documented in the C# language specification, chapter 2.4.4:
float f = 1.2f;
double d = 1.2d;
uint u = 2u;
long l = 2L;
ulong ul = 2UL;
decimal m = 2m;
Nothing for int, byte, sbyte, short, ushort.
More Related Contents:
- Why do we need boxing and unboxing in C#?
- Ignoring a class property in Entity Framework 4.1 Code First
- Is there a .NET/C# wrapper for SQLite? [closed]
- Environment.TickCount vs DateTime.Now
- Disposing WPF User Controls
- JToken: Get raw/original JSON value
- GUI and windows service communication
- Metadata were not loaded using MetadataType
- Creating Directories in a ZipArchive C# .Net 4.5
- working with incredibly large numbers in .NET
- GC.Collect()
- How to remove a single Attribute (e.g. ReadOnly) from a File?
- Is the Linq Count() faster or slower than List.Count or Array.Length?
- Is this a bad practice to catch a non-specific exception such as System.Exception? Why?
- Ghost-borders (‘ringing’) when resizing in GDI+
- C# Windows Form .Net and DOS Console
- .NET Core and System.Drawing
- .Net regex: what is the word character \w?
- How to List Directory Contents with FTP in C#?
- How to create a Button that can send keys to a conrol without losing focus – Virtual Keyboard
- Why doesn’t C# support implied generic types on class constructors?
- Difference between .Net Core, Portable, Standard, Compact, UWP, and PCL?
- Use Google Analytics API to show information in C#
- String.Format exception when format string contains “{“
- C# tutorial to write gadgets
- How to implement Security Protocols TLS 1.2 in .Net 3.5 framework
- Implementing a timeout on a function returning a value
- Json.net rename properties
- Fire Form KeyPress event
- How to modify my App.exe.config keys at runtime?