get list of shires of catalonia in csharp

To get a list of shires of Catalonia in C#, you can use the following code snippet:

main.cs
List<string> shires = new List<string>()
{
    "Alt Camp",
    "Alt Empordà",
    "Alt Penedès",
    "Alt Urgell",
    "Alta Ribagorça",
    "Anoia",
    "Bages",
    "Baix Camp",
    "Baix Ebre",
    "Baix Empordà",
    "Baix Llobregat",
    "Baix Penedès",
    "Barcelonès",
    "Berguedà",
    "Cerdanya",
    "Conca de Barberà",
    "Garraf",
    "Garrigues",
    "Garrotxa",
    "Gironès",
    "Maresme",
    "Montsià",
    "Noguera",
    "Osona",
    "Pallars Jussà",
    "Pallars Sobirà",
    "Pla de l'Estany",
    "Pla d'Urgell",
    "Priorat",
    "Ribera d'Ebre",
    "Ripollès",
    "Segarra",
    "Segrià",
    "Selva",
    "Solsonès",
    "Tarragonès",
    "Terra Alta",
    "Urgell",
    "Val d'Aran",
    "Vallès Occidental",
    "Vallès Oriental"
};
767 chars
45 lines

This code initializes a list of strings with the name of all shires of Catalonia. You can use this list for further processing, like binding it to a listbox or a combobox for the user to select from.

related categories

gistlibby LogSnag