-
Namespace problem
I have a collection of classes that deal with images. Naturally, I wanted to
call my namespace Graphics or Imaging. Apparently, these names are reserved.
Whenever I try to compile my DLL, I get an internal compiler error. The only
way to solve the problem is to change the name to something else.
Are there any more of these reserved names? If so, where can I read about
them?
--
There are 10 kinds of people:
Those who understand binary and those who don't
http://www.acadx.com
http://vbxtender.sourceforge.net
-
Re: Namespace problem
Followup: it gets weirder. I can't use Imaging or Graphics *anywhere* in my
namespace. I tried ImagingTools and GraphicTools but got the same error
message.
--
There are 10 kinds of people:
Those who understand binary and those who don't
http://www.acadx.com
http://vbxtender.sourceforge.net
-
Re: Namespace problem
In article <3d69bdea$1@10.1.10.29> (from Frank Oquendo
<nospam@please.com>),
> I have a collection of classes that deal with images. Naturally, I wanted to
> call my namespace Graphics or Imaging. Apparently, these names are reserved.
> Whenever I try to compile my DLL, I get an internal compiler error. The only
> way to solve the problem is to change the name to something else.
I just did a quick console app using the "Graphics" namespace and it
compiled without problems:
using System;
using System.Drawing;
namespace Graphics
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
You may be seeing a conflict between the System.Drawing.Graphics class
and your "Graphics" namespace. Can you provide some more info?
--
Patrick Steele
Microsoft .NET MVP
http://radio.weblogs.com/0110109
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks