I need to save a class with list of countries in statics for caching.
the data is built with
string shortName //Primary Key - (IL or UK for example) int
You should create a custom type:
public class Country { public string ShortName {get; set;} public int ID {get; set;} public string LongName {get; set;} }
and then store the countries in a Dictionary from which you'll be able to do:
Dictionary
var UK = _countries["UK"]; UK.ID... UK.LongName...