N
NvrBst
is there anyway to use bytes with numbers without actually casting at
the end?
byte Test = 10;
byte row = Test - 5;
Return Error: Cannot implicitly convert type 'int' to 'byte'. An
explicit conversion exists (are you missing a cast?)
I seen some integer-type-suffix's
ulong Test = 10;
ulong row = Test - 5UL;
But I only found "U" and "L"... meaning a number like "5" in "Test -
5" can only set to int / long (uint / ulong)? Whats the suffix's for
short and byte? Or just have to cast it at the end? (byte)(Test - 5)?
Thanks
the end?
byte Test = 10;
byte row = Test - 5;
Return Error: Cannot implicitly convert type 'int' to 'byte'. An
explicit conversion exists (are you missing a cast?)
I seen some integer-type-suffix's
ulong Test = 10;
ulong row = Test - 5UL;
But I only found "U" and "L"... meaning a number like "5" in "Test -
5" can only set to int / long (uint / ulong)? Whats the suffix's for
short and byte? Or just have to cast it at the end? (byte)(Test - 5)?
Thanks