This is a migrated thread and some comments may be shown as answers.

[Solved] Namespace collisions in Prometheus

1 Answer 202 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 26 Dec 2007, 08:40 PM
I like to do
using System.Web.UI.WebControls;
using Telerik.Web.UI;
at the top of each C# module. But the Telerik.Web.UI.Orientation conflicts with System.Web.UI.WebControls.Orientation so that I must use the full name for Orientation. I recomend changing Orientation to something like rcOrientation.

error CS0104: 'Orientation' is an ambiguous reference between 'System.Web.UI.WebControls.Orientation' and 'Telerik.Web.UI.Orientation'


ALSO ... I use using Resources; at the top of each module so I can just specify Resource.my_resource for my strings (instead of Resources.Resource.my_resource). But there is another name conflict in Prometheus with Telerik.Web.UI.Resource


error CS0104: 'Resource' is an ambiguous reference between 'Resources.Resource' and 'Telerik.Web.UI.Resource'

I recomend change Resource to something else so it does not conflict.
Thanks,
Jay

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Jan 2008, 05:00 PM
Hello Jay,

Basically the classes' names are named to be descriptive.
The namespaces exist exactly to allow for having classes with the same name and this is a common practice for the .NET framework.

At this point the name has been chosen correctly. Indeed, it adds a bit of overhead but this can easily be done by using the Visual Studio 2005 option that helps the developer to bind the selected item when you right click over the class name and choose Resolve content menu item.

That's why we do not plan for the time being to change these names. We hope that you will understand our position in this matter.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Jay
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or