Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
AnswerRe: Automatically Compiler Generated Unique Constants ? Pin
Eddy Vluggen21-Nov-12 13:16
professionalEddy Vluggen21-Nov-12 13:16 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-321-Nov-12 13:34
C-P-User-321-Nov-12 13:34 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
Eddy Vluggen21-Nov-12 13:40
professionalEddy Vluggen21-Nov-12 13:40 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-321-Nov-12 13:52
C-P-User-321-Nov-12 13:52 
SuggestionRe: Automatically Compiler Generated Unique Constants ? Pin
Eddy Vluggen21-Nov-12 13:55
professionalEddy Vluggen21-Nov-12 13:55 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-321-Nov-12 14:52
C-P-User-321-Nov-12 14:52 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-321-Nov-12 15:03
C-P-User-321-Nov-12 15:03 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-321-Nov-12 15:01
C-P-User-321-Nov-12 15: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 ? Pin
PIEBALDconsult21-Nov-12 16:27
mvePIEBALDconsult21-Nov-12 16:27 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
Eddy Vluggen21-Nov-12 21:08
professionalEddy Vluggen21-Nov-12 21:08 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
Richard MacCutchan21-Nov-12 22:01
mveRichard MacCutchan21-Nov-12 22:01 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-322-Nov-12 14:22
C-P-User-322-Nov-12 14:22 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
Richard MacCutchan22-Nov-12 23:24
mveRichard MacCutchan22-Nov-12 23:24 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
BobJanova22-Nov-12 23:29
BobJanova22-Nov-12 23:29 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-323-Nov-12 4:43
C-P-User-323-Nov-12 4:43 
QuestionDataGridView doesn't appear on screen Pin
RickSharp21-Nov-12 12:44
RickSharp21-Nov-12 12:44 
AnswerRe: DataGridView doesn't appear on screen Pin
Eddy Vluggen21-Nov-12 13:17
professionalEddy Vluggen21-Nov-12 13:17 
GeneralRe: DataGridView doesn't appear on screen Pin
RickSharp21-Nov-12 13:27
RickSharp21-Nov-12 13:27 
GeneralRe: DataGridView doesn't appear on screen Pin
Eddy Vluggen21-Nov-12 13:42
professionalEddy Vluggen21-Nov-12 13:42 
QuestionTextbox help! Pin
Kurac121-Nov-12 11:18
Kurac121-Nov-12 11:18 
AnswerRe: Textbox help! Pin
Mycroft Holmes21-Nov-12 12:01
professionalMycroft Holmes21-Nov-12 12:01 
QuestionSpecialized List Sorting question Pin
NuclearMan8521-Nov-12 7:12
NuclearMan8521-Nov-12 7:12 
AnswerRe: Specialized List Sorting question Pin
Richard Deeming21-Nov-12 8:03
mveRichard Deeming21-Nov-12 8:03 
AnswerRe: Specialized List Sorting question Pin
SledgeHammer0121-Nov-12 8:06
SledgeHammer0121-Nov-12 8:06 
AnswerRe: Specialized List Sorting question Pin
Richard Deeming21-Nov-12 8:32
mveRichard Deeming21-Nov-12 8:32 

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.