C# Source Code: Tip: Resolving ambiguous class names
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
C# Source Code
Tip: Resolving ambiguous class names
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Wednesday, March 16, 2005
Hits:
1389
Category:
General/Framework
Article:
If you run into an ambiguous name problem, eg with two classes that have the same name you can easily resolve it using alias directive. Below is an example: using MyNameSpace1.AmbiguousClassName; using MyAliasedClassName = MyNameSpace2.AmbiguousClassName; Then in your code you access the class in MyNameSpace2.AmbiguousClassName using the alias "MyAliasedClassName".
Terms and Conditions
Support this site
Download a trial version of the best FTP application on the internet