Re: IsNothing(_myVar) vs. _myVar Is Nothing
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Thu, 18 Aug 2005 09:45:42 +0200
Dave,
To tell the same as Jay in other words.
The IsNothing is a function in the Microsoft.VisualBasic namespace. The
Microsoft.VisualBasic namespace is a namespace included in the framework and
although it is named Microsoft.VisualBasic namespace usable by every managed
program language (C#, J# and C++ managed).
It gives a lot of handy functions, often it are *only* wrappers around
functions in System.Net while mostly it includes as well optimizing code
(even if that optimizing is helping you to write less code).
Here is as Jay showed by the ILS probably nothing more than a wrapper.
About the 80/20 I agree completly with Jay.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vaorivbruntimelibrarykeywords.asp
I hope this explains it even more.
Cor
"Dave Taylor" <no_spam_dave@xxxxxxxxxxxxxx> schreef in bericht
news:%23MZT1v2oFHA.1872@xxxxxxxxxxxxxxxxxxxxxxx
> This is really not very important but something that I'm just curious
> about...which is faster to execute or are they the same:
>
> (1) If IsNothing(_myVar) Then ...
>
> or
>
> (2) If _myVar Is Nothing Then ...
>
> I find myself using #1 most frequently but for no real reason other than I
> like the way it looks.
>
> -- Dave
>
.
- References:
- IsNothing(_myVar) vs. _myVar Is Nothing
- From: Dave Taylor
- IsNothing(_myVar) vs. _myVar Is Nothing
- Prev by Date: Re: Word 2000 / VB.Net Automation Help Required
- Next by Date: Re: How to make MODAL MDIChild
- Previous by thread: Re: IsNothing(_myVar) vs. _myVar Is Nothing
- Next by thread: Re: IsNothing(_myVar) vs. _myVar Is Nothing
- Index(es):
Relevant Pages
|
Loading