C# - is
来源:互联网 发布:金蝶软件报价 编辑:程序博客网 时间:2024/05/13 12:54
Checks if an object is compatible with a given type.
An is expression evaluates totrue if the provided expression is non-null, and the provided object can be cast to the provided type without causing an exception to be thrown.
The is keyword causes a compile-time warning if the expression is known to always betrue or to always be false, but typically evaluates type compatibility at run time.
The is operator cannot be overloaded.
Note that the is operator only considers reference conversions, boxing conversions, and unboxing conversions. Other conversions, such as user-defined conversions, are not considered.
Anonymous methods are not allowed on the left side of theis operator. This exception includes lambda expressions.
- C# - is
- WHAT IS C#
- C# AS与Is
- C# Who Is 查询
- C#的is关键字
- C# as 和 is
- C# as和is
- C# is和as
- C# is as
- C#中"is" vs "as"
- C#中"is" vs "as"
- C#中"is" vs "as"
- C#中"is" vs "as"
- C# : A-Star is born
- C#中"is" vs "as"
- C#中"is" vs "as"
- c# is not cls-compliant
- C# 中 is 与 as
- hdu4893 Wow! Such Sequence! 线段数
- mysql查询缓慢原因和解决方案
- 搭建高可用mongodb集群(二)—— 副本集
- 從DTS到驅動加載的過程分析
- LOL英雄联盟代打外挂程序-java实现
- C# - is
- 如何测试登录窗口
- 搭建高可用mongodb集群(三)—— 深入副本集内部机制
- nginx 的多个参数解析
- 10大最适合编程的字体推荐下载,让代码看起来更美更舒服(转载)
- Hive总结
- mvn package 打包常见错误及解决方案
- 用交换的程序来理解函数传递
- 搭建高可用mongodb集群(四)—— 分片