The typeof operator in C# can only take type names, not objects. if (obj1.GetType() == typeof(int)) // Some code here. This will work, but maybe not as you ...
確定! 回上一頁