How to use C#'s ternary operator with two byte values?

后端 未结 4 1678
悲&欢浪女
悲&欢浪女 2020-12-18 00:50

There doesn\'t seem to be a way to use C#\'s ternary operator on two bytes like so:

byte someByte = someBoolean ? 0 : 1;

That code currentl

4条回答
提交回复
热议问题