G
Guest
Is there a method which will return the "text" value of an enum? Say I have
and enum which looks like the following....
public enum DBSource
{
Speed_DB=0,
Clarify_DB=1,
PSI_DB=2,
RNASand_DB=3,
PRGOPS_DB=4,
PRGAdmin_DB=5,
MKIS_DB=6,
DataBarn_DB=7
}
In this particular situation, I have a text value of "MKIS" and I need to
know if that value is represented by one of the "enums" and then if it is, I
need to pass the Enum as a parameter of a method... something like
DBSource.MKIS. Is there a way for me to do this?
Thanks in advance for your assistance!
and enum which looks like the following....
public enum DBSource
{
Speed_DB=0,
Clarify_DB=1,
PSI_DB=2,
RNASand_DB=3,
PRGOPS_DB=4,
PRGAdmin_DB=5,
MKIS_DB=6,
DataBarn_DB=7
}
In this particular situation, I have a text value of "MKIS" and I need to
know if that value is represented by one of the "enums" and then if it is, I
need to pass the Enum as a parameter of a method... something like
DBSource.MKIS. Is there a way for me to do this?
Thanks in advance for your assistance!