Can't use using in method???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Julie (julie_at_nospam.com)
Date: 03/31/04


Date: Tue, 30 Mar 2004 16:17:56 -0800

This isn't legal???

class Something
{
        public void OrOther()
        {
                using System; // error!
        }
}

>From what I can tell from the docs, using is only usable at the global level or
within an enclosing namespace, but not within a method --

If that is truly the case, then I put using on my short list of directives to
*not* use...