说明c#中特殊运算符as、is、new、sizeof、typeof 的含义。

如题所述

as强制转换, obj as str,把obj转换成string,转换失败返回为null;
is判断是否为制定类型,str is string,判断str是否为string;
new就是创建一个实例 DataTable dt = new DataTable();
sizeof判断某个类型在内存中占用的字节数;
typeof返回变量的类型,int i = 0; typeof(i)。
温馨提示:内容为网友见解,仅供参考
第1个回答  2010-12-19
cgnxc本回答被网友采纳
相似回答