相关疑难解决方法(0)

如何将Object强制转换为实际类型?

如果我有:

void MyMethod(Object obj) {   ...   }
Run Code Online (Sandbox Code Playgroud)

obj该如何演绎其实际类型?

c# types casting typeof object

100
推荐指数
3
解决办法
27万
查看次数

标签 统计

c# ×1

casting ×1

object ×1

typeof ×1

types ×1