c#中隐式转换和显示转换(强制转换)的区别

2025-02-22 09:41:10
推荐回答(1个)
回答1:

一个拆箱一个装箱,隐式转换一般指装箱,强制指拆箱
object A = "abc" 装箱
string str = (string)A 拆箱