GrayAreas

2015年11月24日 #

封箱和拆箱

摘要: 封箱的含义:把值类型转换为System.Object类型,或者转换为由值类型实现的结构类型.如:struct MyStruct{pubilc int Val;}MyStruct valType1 = new MyStruct();valType1.Val = 5;object refType = v... 阅读全文

posted @ 2015-11-24 21:44 GrayAreas 阅读(423) 评论(0) 推荐(0)

导航