0
可能重複:
C# XOR on two byte variables will not compile without a cast爲什麼要使兩個不重要的值不返回?
爲什麼我得到這個C#代碼編譯錯誤?
void test()
{
ushort a = 0;
ushort b = 0;
ushort c = a^b; //ERROR
}
錯誤CS0266:無法隱式轉換類型 '詮釋' 到 'USHORT'。一個顯式轉換存在(是否缺少強制轉換?)
With * any *操作符。 – EJP
@dbattaglia - 所以你明白downvote的原因。這很容易成爲評論。 –
@Ramhound當然,明白了! :) – dbattaglia