如果Typeof X IsNot Y那么...... [英] If Typeof X IsNot Y Then...
本文介绍了如果Typeof X IsNot Y那么......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么不是新的IsNot?操作员与
''Typeof''一起工作?
Why doesn''t the new "IsNot" operator work in conjunction with
''Typeof''?
推荐答案
Jason,
恕我直言:
因为IsNot是Is运算符的反函数。它们都习惯于比较对象引用。
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
http ://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
是在TypeOf运算符中是占位符&不是运算符本身。
TypeOf运算符用于检查对象引用的数据类型。
http://msdn2.microsoft.com/en-us/lib ... US,VS.80).aspx
-
Jay [MVP - Outlook]
..NET应用程序架构师,爱好者,&福音传教士
T.S.布拉德利 - http://www.tsbradley.net
" ; Jason Kendall < JA ********** @ hotmail.com>在留言中写道
news:3o ******************************** @ 4ax.com ......
|为什么新的IsNot不是新的。操作员与
|一起工作''Typeof''?
|
Jason,
IMHO:
Because IsNot is the inverse of the Is operator. They are both used to
compare object references.
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
The "Is" in the TypeOf operator is a placeholder & not the operator per se.
The TypeOf operator is used to check the data type of an object reference.
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
--
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Jason Kendall" <Ja**********@hotmail.com> wrote in message
news:3o********************************@4ax.com...
| Why doesn''t the new "IsNot" operator work in conjunction with
| ''Typeof''?
|
"Is"在TypeOf运算符中是占位符
多么奇怪。这清除了为什么''TypeOf''没有使用
括号。
谢谢。
-
Jason Kendall
Ja ********* *@hotmail.com
星期五,2005年10月21日10:33:08 -0500,Jay B. Harlow [MVP - Outlook]"
< Ja ************ @ tsbradley.net>写道:
"The "Is" in the TypeOf operator is a placeholder"
How very strange. That clears up why ''TypeOf'' doesn''t use
parenthesis.
Thanks.
--
Jason Kendall
Ja**********@hotmail.com
On Fri, 21 Oct 2005 10:33:08 -0500, "Jay B. Harlow [MVP - Outlook]"
<Ja************@tsbradley.net> wrote:
Jason,
恕我直言:
因为IsNot是Is运算符的逆。它们都用于比较对象引用。
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
http:// msdn2 .microsoft.com / zh-CN / lib ... US,VS.80).aspx
是在TypeOf运算符中是占位符&不是操作符本身。
TypeOf操作符用于检查对象引用的数据类型。
http://msdn2.microsoft.com/en-us/lib...US,VS。 80).aspx
Jay B. Harlow [MVP - Outlook]写道:
Jay B. Harlow [MVP - Outlook] wrote:
杰森,
恕我直言:
因为IsNot是Is运算符的逆。它们都用于比较对象引用。
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
http:// msdn2 .microsoft.com / zh-CN / lib ... US,VS.80).aspx
是在TypeOf运算符中是占位符&不是操作员本身。
Jason,
IMHO:
Because IsNot is the inverse of the Is operator. They are both used to
compare object references.
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
The "Is" in the TypeOf operator is a placeholder & not the operator per se.
所以''是''在''TypeOf X是T''''IsNot''''是''在''是Y''? :)
-
Larry Lard
回复团体请
So the ''Is'' in ''TypeOf X Is T'' ''IsNot'' the ''Is'' in ''X Is Y'' ? :)
--
Larry Lard
Replies to group please
这篇关于如果Typeof X IsNot Y那么......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文