コード例 #1
0
        private Region(string country, string region)
        {

            this.Country = Country.GetCountry(country);
            this.Name = region;
           
        }
コード例 #2
0
 public static Country GetCountry(string name)
 {
     try
     {
         return II.CurentII.Countries[name];
     }
     catch 
     {
         Country country = new Country(name);
         II.CurentII.Countries[name] = country;
         II.CurentII.Regions[name] = new Dictionary<string, Region>();
         return country;
     }
 }
コード例 #3
0
 public static Region GetRegion(Country country, string region) 
 {
     return GetRegion(country.Name,region);
 }
コード例 #4
0
 private Region(Country country, string region)
 {
     this.Country = country;
     this.Name = region;
     
 }