标签:
is
1,检查对象的兼容性,并返回true或false
2,不会抛出异常
3,null永远返回false
as
1,检查对象的兼容性,并返回 true或false
3,null将抛出"未将对象引用到实例(nullreferenceexception)"异常
as 和is的区别
原文地址:http://www.cnblogs.com/objectboy/p/4623115.html