I have a struct called Services and in it I have some static properties
public struct Servico
{
public static Servico Instalacao {
get { return new Servico(ServicesType.Instalacao); }
}
public static Servico Desativacao {
get { return new Servico(ServicesType.Desativacao); }
}
public static Servico TrocaVeiculo {
get { return new Servico(ServicesType.TrocaVeiculo); }
}
public static Servico TrocaTitularidade {
get { return new Servico(ServicesType.TrocaTitularidade); }
}
}
How to list all my properties when I declare an object. Same when we declare a color, automatically all colors are listed.
Example: