Darrell Norton's Blog [MVP]

Sponsors

The Lounge

Wicked Cool Jobs

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Quick (old) Tip

Quick (old) Tip

One of my team members showed me this one a while back, but I had to use it again today.

A using statement can have a variable receive the "value" of a namespace.  For example, I can do this:

using App = MyCompany.MyApplication.Framework;

This is particularly useful in resolving ambiguous references (e.g., a System.Environment class and a MyCompany.MyApplication.Framework.Environment class).  Then, instead of fully qualifying it I can shortcut it (e.g., App.Environment).


Posted Thu, Jun 12 2003 12:33 PM by Darrell Norton

[Advertisement]

Comments

tukaram wrote re: Quick (old) Tip
on Thu, Oct 7 2004 7:56 PM
importnat info
Devlicio.us