Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
GeneralRe: File creation and naming increment Pin
Terick21-Jan-09 6:16
Terick21-Jan-09 6:16 
GeneralRe: File creation and naming increment Pin
User 665821-Jan-09 7:29
User 665821-Jan-09 7:29 
GeneralRe: File creation and naming increment Pin
riced22-Jan-09 4:28
riced22-Jan-09 4:28 
AnswerThis post is not addressing your question but ... Pin
Ennis Ray Lynch, Jr.21-Jan-09 6:04
Ennis Ray Lynch, Jr.21-Jan-09 6:04 
GeneralRe: This post is not addressing your question but ... Pin
Terick21-Jan-09 6:26
Terick21-Jan-09 6:26 
GeneralRe: This post is not addressing your question but ... Pin
Ennis Ray Lynch, Jr.21-Jan-09 6:30
Ennis Ray Lynch, Jr.21-Jan-09 6:30 
GeneralRe: This post is not addressing your question but ... Pin
PIEBALDconsult21-Jan-09 7:54
mvePIEBALDconsult21-Jan-09 7:54 
GeneralRe: This post is not addressing your question but ... Pin
Ennis Ray Lynch, Jr.21-Jan-09 8:28
Ennis Ray Lynch, Jr.21-Jan-09 8:28 
GeneralRe: This post is not addressing your question but ... Pin
PIEBALDconsult21-Jan-09 8:31
mvePIEBALDconsult21-Jan-09 8:31 
GeneralRe: This post is not addressing your question but ... Pin
Ennis Ray Lynch, Jr.21-Jan-09 8:34
Ennis Ray Lynch, Jr.21-Jan-09 8:34 
GeneralRe: This post is not addressing your question but ... Pin
PIEBALDconsult21-Jan-09 8:37
mvePIEBALDconsult21-Jan-09 8:37 
GeneralRe: This post is not addressing your question but ... Pin
Ennis Ray Lynch, Jr.21-Jan-09 8:38
Ennis Ray Lynch, Jr.21-Jan-09 8:38 
GeneralRe: This post is not addressing your question but ... Pin
Terick21-Jan-09 9:44
Terick21-Jan-09 9:44 
GeneralRe: This post is not addressing your question but ... Pin
PIEBALDconsult21-Jan-09 11:18
mvePIEBALDconsult21-Jan-09 11:18 
GeneralRe: This post is not addressing your question but ... Pin
Ennis Ray Lynch, Jr.21-Jan-09 9:48
Ennis Ray Lynch, Jr.21-Jan-09 9:48 
QuestionReference syntax Pin
kanchoette21-Jan-09 4:13
kanchoette21-Jan-09 4:13 
AnswerRe: Reference syntax Pin
Eddy Vluggen21-Jan-09 4:46
professionalEddy Vluggen21-Jan-09 4:46 
GeneralRe: Reference syntax Pin
kanchoette21-Jan-09 21:30
kanchoette21-Jan-09 21:30 
QuestionInserting XML file in SQL db Pin
KppsK21-Jan-09 3:46
KppsK21-Jan-09 3:46 
AnswerRe: Inserting XML file in SQL db Pin
DanB198321-Jan-09 5:45
DanB198321-Jan-09 5:45 
AnswerRe: Inserting XML file in SQL db Pin
Wendelius21-Jan-09 7:36
mentorWendelius21-Jan-09 7:36 
QuestionDynamic Enum Creation Pin
MamthaLalith21-Jan-09 3:07
MamthaLalith21-Jan-09 3:07 
AnswerRe: Dynamic Enum Creation Pin
#realJSOP21-Jan-09 3:09
professional#realJSOP21-Jan-09 3:09 
GeneralRe: Dynamic Enum Creation Pin
MamthaLalith21-Jan-09 3:19
MamthaLalith21-Jan-09 3:19 
GeneralRe: Dynamic Enum Creation Pin
Ben Fair21-Jan-09 3:34
Ben Fair21-Jan-09 3:34 
You can create code in memory at runtime and compile it into an in memory assembly. This can be done with the System.CodeDom and Microsoft.CSharp namespaces. You would then use reflection (System.Reflection) to interact with the assembly. I've seen articles that talk about scripting implementations that give examples of using the classes in the aforementioned namespaces. I've been able to dynamically compile text that is syntactically valid C# code into an in memory assembly and use reflection to execute the code and return a result. So, you should be able to use the same approach to create an Enum in an in memory assembly and then load an instance of the Enum from that assembly. There probably won't be code out there that does exactly what you are asking about, but there is stuff out there that will get you in the ballpark.

Keep It Simple Stupid! (KISS)

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.