Click here to Skip to main content
15,887,336 members
Home / Discussions / C#
   

C#

 
QuestionHow to figure out whether an enum is defined in an assembly. [modified] Pin
_AnsHUMAN_ 3-Jun-09 22:01
_AnsHUMAN_ 3-Jun-09 22:01 
AnswerRe: How to figure out whether an enum is defined in an assembly. Pin
0x3c03-Jun-09 22:04
0x3c03-Jun-09 22:04 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
_AnsHUMAN_ 3-Jun-09 22:06
_AnsHUMAN_ 3-Jun-09 22:06 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
0x3c03-Jun-09 22:15
0x3c03-Jun-09 22:15 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
_AnsHUMAN_ 3-Jun-09 22:45
_AnsHUMAN_ 3-Jun-09 22:45 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
0x3c03-Jun-09 22:57
0x3c03-Jun-09 22:57 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
_AnsHUMAN_ 3-Jun-09 23:43
_AnsHUMAN_ 3-Jun-09 23:43 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
0x3c04-Jun-09 1:43
0x3c04-Jun-09 1:43 
Exactly. If you open the file in .Net Reflector, then you can search for MyEnum and get the namespace from there. But why not just make Type of MyEnum available in the DescriptionAttribute derived class, instead of the name; that way you can save the time it takes to call Assembly.GetType. As long as you know how to create your own attribute which accepts a Type instantiation and has a Type property, and how to use Assembly.GetCustomAttributes, you have the Type

Between the idea
And the reality
Between the motion
And the act
Falls the Shadow

AnswerRe: How to figure out whether an enum is defined in an assembly. Pin
S. Senthil Kumar4-Jun-09 2:15
S. Senthil Kumar4-Jun-09 2:15 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
_AnsHUMAN_ 4-Jun-09 20:11
_AnsHUMAN_ 4-Jun-09 20:11 
GeneralRe: How to figure out whether an enum is defined in an assembly. Pin
S. Senthil Kumar4-Jun-09 20:41
S. Senthil Kumar4-Jun-09 20:41 
QuestionOracle connection problem in C# Pin
mariamkhaqan3-Jun-09 21:59
mariamkhaqan3-Jun-09 21:59 
Questionhelp Pin
Rajdeep.NET3-Jun-09 21:50
Rajdeep.NET3-Jun-09 21:50 
AnswerRe: help [modified] Pin
musefan3-Jun-09 21:51
musefan3-Jun-09 21:51 
GeneralRe: help Pin
0x3c03-Jun-09 22:01
0x3c03-Jun-09 22:01 
GeneralRe: help Pin
musefan3-Jun-09 22:04
musefan3-Jun-09 22:04 
GeneralRe: help Pin
Rajdeep.NET3-Jun-09 22:31
Rajdeep.NET3-Jun-09 22:31 
GeneralRe: help Pin
musefan3-Jun-09 22:35
musefan3-Jun-09 22:35 
GeneralRe: help Pin
0x3c03-Jun-09 22:35
0x3c03-Jun-09 22:35 
Questionwant to allow the user to enter ' but shows error Pin
Mehul_qaz3-Jun-09 21:15
Mehul_qaz3-Jun-09 21:15 
AnswerRe: want to allow the user to enter ' but shows error Pin
Blue_Boy3-Jun-09 21:26
Blue_Boy3-Jun-09 21:26 
GeneralRe: want to allow the user to enter ' but shows error Pin
Guffa3-Jun-09 21:55
Guffa3-Jun-09 21:55 
GeneralRe: want to allow the user to enter ' but shows error Pin
Blue_Boy5-Jun-09 1:33
Blue_Boy5-Jun-09 1:33 
AnswerRe: want to allow the user to enter ' but shows error Pin
Guffa3-Jun-09 21:52
Guffa3-Jun-09 21:52 
AnswerRe: want to allow the user to enter ' but shows error Pin
musefan3-Jun-09 21:56
musefan3-Jun-09 21:56 

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.