- use enum or dictionary?
- public enum Names {
- Registrado = 0,
- Activo = 1,
- Finalizado = 2,
- Anticipado = 3,
- Reestructurado = 4
- }
- int theDbValue = ...;
- Names name = (Names)theDbValue;
- var map = new Dictionary<Names, string>();
- map[Names.Registrado] = "...";
- map[Names.Activo] = "...";
- // etc ...