I am wondering if there is any way to declare a byte variable in a short way like floats or doubles? I mean like 5f and 5d. Sure I could write
5f
5d
From this MSDN page, it would seem that your only options are to cast explicitly (var x = (byte)5), or stop using var...
var x = (byte)5
var