M
Michael A. Covington
I'm assembling text attribute bytes (upper and lower nybbles) and have the
following line of code:
ushort a = (ushort)((csbi.wAttributes & (ushort)0x0F) |
(ushort)((ushort)value<<4));
Here value is an enum of base type ushort, csbi.wAttributes is a ushort...
so why is everything coverting to int (not even uint) and having to be
converted back?
There has to be a better way to code this!
following line of code:
ushort a = (ushort)((csbi.wAttributes & (ushort)0x0F) |
(ushort)((ushort)value<<4));
Here value is an enum of base type ushort, csbi.wAttributes is a ushort...
so why is everything coverting to int (not even uint) and having to be
converted back?
There has to be a better way to code this!