Getting description attribute value from value type

S

Smokey Grindle

Say I have an enumeration

Public Enum MyEnum
<desctription("test 123") Test
<description("My Val") Value
end enum

private MyValue as MyEnum = MyEnum.Text

now I want to get the description in code, i'm assumeing reflection, but
exactly how would I get that information about the description of the value
in MyValue? thanks!
 
S

Smokey Grindle

there is no "Real code" I'm just asking how do you access a value of an
attribute for an item....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top