C# short/long/int literal format?

In C/C#/etc. you can tell the compiler that a literal number is not what it appears to be (ie., float instead of double, unsigned long instead of int):

var d = 1.0;  // double
var f = 1.0f; // float
var u = 1UL;  // unsigned long

etc.

Could someone point me to a list of these? I’m specifically looking for a suffix for short or Int16.

5 Answers
5

Leave a Comment