Literal suffix for byte in .NET?

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 byte x = 5, but that’s a bit inconsequential if you use var for local variables.

4 Answers
4

Leave a Comment