Friday, April 22, 2011

Take Advantage of Auto-Completion!

I received an email from a co-worker who's getting tired of typing the same code over and over again:
-----
From: ----, ----

Sent: Thursday, April 21, 2011 12:32 PM
To: ****, ****
Subject: HtmlNodeCollection Extension

Got tired of writing

if ( Node == null)
{

}

so I wrote an extension

if (Node.IsNull())
{
}
------ and here's my reply--------

LOL!

Take advantage of auto-completion:

I usually just type:

if(node.E(nu))

which expands to:

if (node.Equals(null))

No comments: