How do you resolve .Net namespace conflicts with the 'using' keyword? -
here's problem, include multiple assemblies , add 'using namespacex' @ top of code file.
want create class or use symbol defined in multiple namespaces, e.g. system.windows.controls.image
& system.drawing.image
now unless use qualified name, there crib/build error due ambiguity inspite of right 'using' declarations @ top. way out here?
(another knowledge base post.. found answer after 10 minutes of searching because didn't know right keyword search for)
use alias
using system.windows.controls; using drawing = system.drawing; ... image img = ... //system.windows.controls.image drawing.image img2 = ... //system.drawing.image
Comments
Post a Comment