6

How, how can I be sooooo bad sometimes.
I just discovered “Alias” feature of C#.
Let’s say you have 2 enums with the same name (Let’s say MyAwsomeEnum) in 2 different namespaces.
In this case I was always full qualifying the name.
I was today years old when I discovered “using MyAwsomeEnum = <Fully qualified name>” in the using section.

Edit : Even worse. It's like 3d example in official doc

https://docs.microsoft.com/en-us/...
/facepalm on my self

Comments
Add Comment