jeudi 16 avril 2015

how to convert "value" to enum?

I have this enum class:



public enum IconImageTag {

None("val1"),
USD("val2"),
EURO("val3");
}


given a string which represent a "value" (say `"val"1)


how can I convert it to the corresponding enum?


Aucun commentaire:

Enregistrer un commentaire