Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Sexo : Enumeration
- {
- public static Sexo Masculino = new Sexo(1, "Masculino");
- public static Sexo Feminino = new Sexo(2, "Feminino");
- public static Sexo Travesti = new Sexo(3, "Travesti");
- public static Sexo Crossdresser = new Sexo(4, "Crossdresser");
- public static Sexo AlgumaOutraLoucuraProgressista = new Sexo(5, "Alguma outra loucura progressista");
- public static Sexo[] List() => new Sexo[] { Masculino, Feminono, Travesti, Crossdresser,AlgumaOutraLoucuraProgressista };
- public static Sexo From(int id) => List().Where(c => c.Id == id).FirstOrDefault();
- private Sexo(int id, string name) : base(id, name) { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement