Click here to Skip to main content
15,900,641 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Damnit! The internet is down ... Pin
Gerry Schmitz2-Sep-21 6:25
mveGerry Schmitz2-Sep-21 6:25 
GeneralRe: Damnit! The internet is down ... Pin
Slow Eddie3-Sep-21 3:39
professionalSlow Eddie3-Sep-21 3:39 
GeneralA conversation heard at Microsoft Pin
BillWoodruff1-Sep-21 20:32
professionalBillWoodruff1-Sep-21 20:32 
GeneralRe: A conversation heard at Microsoft Pin
Daniel Pfeffer1-Sep-21 21:39
professionalDaniel Pfeffer1-Sep-21 21:39 
GeneralRe: A conversation heard at Microsoft Pin
BillWoodruff1-Sep-21 23:21
professionalBillWoodruff1-Sep-21 23:21 
GeneralRe: A conversation heard at Microsoft Pin
Richard Deeming1-Sep-21 22:10
mveRichard Deeming1-Sep-21 22:10 
GeneralRe: A conversation heard at Microsoft Pin
BillWoodruff1-Sep-21 23:05
professionalBillWoodruff1-Sep-21 23:05 
GeneralRe: A conversation heard at Microsoft Pin
Richard Deeming1-Sep-21 23:25
mveRichard Deeming1-Sep-21 23:25 
My Point was that this is normal; if two classes in different namespaces have the same name, and you use both namespaces, then you'll end up with ambiguous references.

If you start with a class that uses System.Drawing and has unqualified references to Point and Size, then the simplest option is to add aliases for the System.Windows types, and use those in the new code you're writing.

It's slightly annoying, but there are only so many words you can use to describe a class that represents a point or a size. If every new library that exposes those concepts had to come up with a different word for the same concept, that would be a worse outcome than having to alias the types in the unusual places where both are used.

But at least the types are in different namespaces, so you don't need to mess around with extern aliases for the assemblies. Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: A conversation heard at Microsoft Pin
BillWoodruff1-Sep-21 23:46
professionalBillWoodruff1-Sep-21 23:46 
GeneralRe: A conversation heard at Microsoft Pin
Richard Deeming2-Sep-21 0:09
mveRichard Deeming2-Sep-21 0:09 
GeneralRe: A conversation heard at Microsoft Pin
BillWoodruff2-Sep-21 14:11
professionalBillWoodruff2-Sep-21 14:11 
GeneralRe: A conversation heard at Microsoft Pin
obermd2-Sep-21 8:42
obermd2-Sep-21 8:42 
GeneralRe: A conversation heard at Microsoft Pin
BillWoodruff2-Sep-21 13:56
professionalBillWoodruff2-Sep-21 13:56 
GeneralMessage Closed Pin
1-Sep-21 23:08
professionalBillWoodruff1-Sep-21 23:08 
GeneralRe: A conversation heard at Microsoft Pin
Richard Deeming1-Sep-21 23:17
mveRichard Deeming1-Sep-21 23:17 
GeneralRe: A conversation heard at Microsoft Pin
MadGerbil3-Sep-21 1:51
MadGerbil3-Sep-21 1:51 
GeneralRe: A conversation heard at Microsoft Pin
BillWoodruff3-Sep-21 15:10
professionalBillWoodruff3-Sep-21 15:10 
GeneralRe: A conversation heard at Microsoft Pin
Steve Naidamast3-Sep-21 5:58
professionalSteve Naidamast3-Sep-21 5:58 
GeneralRe: A conversation heard at Microsoft Pin
BillWoodruff3-Sep-21 15:08
professionalBillWoodruff3-Sep-21 15:08 
GeneralOutsourced HR? Pin
David Carta1-Sep-21 19:48
professionalDavid Carta1-Sep-21 19:48 
GeneralRe: Outsourced HR? Pin
Moo v This2-Sep-21 2:58
Moo v This2-Sep-21 2:58 
GeneralRe: Outsourced HR? Pin
David Carta3-Sep-21 5:12
professionalDavid Carta3-Sep-21 5:12 
GeneralRe: Outsourced HR? Pin
rnbergren2-Sep-21 3:12
rnbergren2-Sep-21 3:12 
GeneralRe: Outsourced HR? Pin
dandy722-Sep-21 3:37
dandy722-Sep-21 3:37 
GeneralRe: Outsourced HR? Pin
Moo v This3-Sep-21 3:40
Moo v This3-Sep-21 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   491 votes