Click here to Skip to main content
       

C#

 
AnswerRe: Automatically Compiler Generated Unique Constants ? PinmemberEddy Vluggen21-Nov-12 14:16 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberC-P-User-321-Nov-12 14:34 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberEddy Vluggen21-Nov-12 14:40 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberC-P-User-321-Nov-12 14:52 
SuggestionRe: Automatically Compiler Generated Unique Constants ? PinmemberEddy Vluggen21-Nov-12 14:55 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberC-P-User-321-Nov-12 15:52 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberC-P-User-321-Nov-12 16:03 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberC-P-User-321-Nov-12 16:01 
Hold it, wait a minute, on that msdn page, I just read this...
From the MSDN page:
Usually it is best to define an enum directly within a namespace so that all classes in the namespace can access it with equal convenience. However, an enum can also be nested within a class or struct.
I thought that every variable had to be in a class; but then these aren't variables; I guess; somebody fix my brain on this matter.
 
So then, if I take the enum thing (what is the right word for "thing" in this context ?) out of the class structure, and just put it after the opening bracket of the namespace, I can use the names in the enum list as they are ? Without the UniqueValue.Fred nomenclature ?
 
e.g., I could just use the name "Fred" (no quotes" and get a guaranteed unique value ?
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberPIEBALDconsult21-Nov-12 17:27 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberEddy Vluggen21-Nov-12 22:08 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmvpRichard MacCutchan21-Nov-12 23:01 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberC-P-User-322-Nov-12 15:22 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmvpRichard MacCutchan23-Nov-12 0:24 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberBobJanova23-Nov-12 0:29 
GeneralRe: Automatically Compiler Generated Unique Constants ? PinmemberC-P-User-323-Nov-12 5:43 
QuestionDataGridView doesn't appear on screen [modified] PinmemberRickSharp21-Nov-12 13:44 
AnswerRe: DataGridView doesn't appear on screen PinmemberEddy Vluggen21-Nov-12 14:17 
GeneralRe: DataGridView doesn't appear on screen PinmemberRickSharp21-Nov-12 14:27 
GeneralRe: DataGridView doesn't appear on screen PinmemberEddy Vluggen21-Nov-12 14:42 
QuestionTextbox help! PinmemberKurac121-Nov-12 12:18 
AnswerRe: Textbox help! PinmemberMycroft Holmes21-Nov-12 13:01 
QuestionSpecialized List Sorting question PinmemberNuclearMan8521-Nov-12 8:12 
AnswerRe: Specialized List Sorting question [modified] PinmemberRichard Deeming21-Nov-12 9:03 
AnswerRe: Specialized List Sorting question PinmemberSledgeHammer0121-Nov-12 9:06 
AnswerRe: Specialized List Sorting question PinmemberRichard Deeming21-Nov-12 9:32 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 27 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid