Re: IsNothing(_myVar) vs. _myVar Is Nothing



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
>


.



Relevant Pages

  • Re: Namespace of Interesting/Important Constants ?
    ... Thank you Jay and Cor. ... Thanks, Bob ... > No there is no header file or namespace per se. ... > I don't know of a MAX_PATH type constant, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Application Name and version
    ... Lou, ... The Application class is in the System.Windows.Forms namespace (and ... Jay ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: My.Computer
    ... it is simply a set of wrappers. ... in Environment class. ... was a namespace I could import to get it. ... Steve ...
    (microsoft.public.pocketpc.developer)

Loading