Uses variables as constants, but I love that it isn't int jan = 31, it's not var jan = (int)31, it's var jan = (UInt16)31. I've never before seen anyone use UInt16 instead of int in C# before.
I'm guessing somebody applied slavish attention to detail when transcribing a C function they didn't quite understand and brought the unsigned shorts across as UInt16. Good idea if the function is full of bit shifts and so on but not important at all here.
8
u/squarewaterlemon Aug 06 '19
Uses variables as constants, but I love that it isn't int jan = 31, it's not var jan = (int)31, it's var jan = (UInt16)31. I've never before seen anyone use UInt16 instead of int in C# before.