lundi 11 mai 2015

Get enum value from .dll file [on hold]

I have a .dll file with many methods in it. In many of these methods a custom exception is thrown:

public enum enumCodes
{
    Code1,
    Code2,
    Code3
}
...
throw new MyException(enumCodes.Code1, "myMessage");

Is there a way to get the value of enum.value using reflection?





Aucun commentaire:

Enregistrer un commentaire