EasyText, EasyLicense 的作者, https://github.com/EasyHelper Good Good Study,Day Day Up.

 

摘要: 和对象类型(object type),类型转换(type conversions)打交道的关键字:asisexplicitimplicitoperatorsizeoftypeofis and asis : 用来判断某个对象是不是某个类型。string str= string.Empty; if (str is string) { }在这里如果str 是string 的话,if 就是true。as :将某个对象转换为某个类型。string str= string.Empty; if (str is string) { } string as_str = str as string; if (as 阅读全文
posted @ 2012-12-06 07:11 LoveJenny 阅读(2077) 评论(2) 推荐(0) 编辑
EasyText, EasyLicense 的作者, https://github.com/EasyHelper Good Good Study,Day Day Up.