|
I do I get description from Public Enum?
Public Enum API
'''
''' Using Google API
'''
<description("google api")=""> Google
'''
''' Using Yahoo API
'''
<description("yahoo api")=""> Yahoo
End Enum
API.Yahoo.Description not working
|
|
|
|
|
what programming language your are using and how you are trying to access the description?
Jibesh V P
|
|
|
|
|
You need Reflection . With that, you can retrieve the DescriptionAttribute .
Look at some articles on Enum Description Converters, e.g. Description Enum TypeConverter[^].
|
|
|
|
|
Those are XML-comments, and comments aren't compiled into the code. You could use a DescriptionAttribute as already mentioned, or you'd manually parse the generated XML.
|
|
|
|