private void LoadXMLMunicipios() { System.Xml.Serialization.XmlSerializer reader = new System.Xml.Serialization.XmlSerializer(typeof(Brasil)); System.IO.StreamReader file = new System.IO.StreamReader(@"MunicipioBR.xml"); brasil = (Brasil)reader.Deserialize(file); file.Close(); }
public Cep2IBGE() { brasil = new Brasil(); LoadXMLMunicipios(); }