Can't use using in method???
From: Julie (julie_at_nospam.com)
Date: 03/31/04
- Next message: John Baro: "Re: IDE Removing Code on Compile :("
- Previous message: Arthur Yousif: "Re: Allocate more memory into Byte array"
- Next in thread: pei_world: "Re: Can't use using in method???"
- Reply: pei_world: "Re: Can't use using in method???"
- Reply: William Ryan eMVP: "Re: Can't use using in method???"
- Reply: C# Learner: "Re: Can't use using in method???"
- Messages sorted by: [ date ] [ thread ]
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...
- Next message: John Baro: "Re: IDE Removing Code on Compile :("
- Previous message: Arthur Yousif: "Re: Allocate more memory into Byte array"
- Next in thread: pei_world: "Re: Can't use using in method???"
- Reply: pei_world: "Re: Can't use using in method???"
- Reply: William Ryan eMVP: "Re: Can't use using in method???"
- Reply: C# Learner: "Re: Can't use using in method???"
- Messages sorted by: [ date ] [ thread ]