当我使用下面的代码时,感觉就像我在某个地方出错了.
object obj = 1; int i = int.Parse(obj.ToString());
有更简单的方法吗?
c# casting
c# ×1
casting ×1