Ejemplo n.º 1
0
        public static Stream GetResourceStream(ResourceTypeOptions resourceType)
        {
            switch (resourceType)
            {
            case ResourceTypeOptions.CountryProvinceCityXML:
                return(GetResourceStream("CountryProvinceCity.xml"));

            default:
                return(null);
            }
        }
Ejemplo n.º 2
0
        public static string GetResource(ResourceTypeOptions resourceType)
        {
            switch (resourceType)
            {
            case ResourceTypeOptions.CountryProvinceCityXML:
                return(GetResourceTextFile("CountryProvinceCity.xml"));

            case ResourceTypeOptions.TimeZonesXML:
                return(GetResourceTextFile("TimeZones.xml"));

            default:
                return(string.Empty);
            }
        }