2008年4月10日
摘要: C#下的强制类型转换应用分析:()、is、as C#下的强制类型转换有以下三种: 注:objA 为 typeA 类型,objB 为 typeB 类型 (1) typeA objA = (typeA)objB; (2) typeA objA = objB as objA; (3) typeA objA = objB as typeA 在实际开发过程中我们经常用到上面三种类型转换,但这三种强制类型转换... 阅读全文
posted @ 2008-04-10 11:10 朱保旭 阅读(4446) 评论(3) 推荐(1) 编辑