Getting description attribute value from value type

  • Thread starter Thread starter Smokey Grindle
  • Start date Start date
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!
 
there is no "Real code" I'm just asking how do you access a value of an
attribute for an item....
 
Back
Top