For more information, see Boolean logical operators.īitwise and shift operations never cause overflow and produce the same results in checked and unchecked contexts. ![]() ![]() The &, |, and ^ operators are also defined for operands of the bool type. The compound operators (such as >=) don't convert their arguments to int or have the result type as int. For more information, see the Numeric promotions section of the C# language specification. When operands are of different integral types, their values are converted to the closest containing integral type. When both operands are of other integral types ( sbyte, byte, short, ushort, or char), their values are converted to the int type, which is also the result type of an operation. Those operators are defined for the int, uint, long, and ulong types. Binary & (logical AND), | (logical OR), and ^ (logical exclusive OR) operators. ![]()
0 Comments
Leave a Reply. |