public Territory(object data, Region region) : base(data) { _region = region; Name = Field<string>(0); _possiblePattern = Field<string, Regex>(1, p => new Regex("^" + p + "$")); NationalPattern = Field<string, Regex>(2, p => new Regex("^" + p + "$")); NationalPrefixFormattingRule = Field<string>(3); }
public override bool TryGetRegion(string countryCode, out Region value) { return RegionsByCountryCode.TryGetValue(countryCode, out value); }
public bool TryGetRegion(int countryCode, out Region value) { return TryGetRegion(countryCode.ToString(CultureInfo.InvariantCulture), out value); }
public abstract bool TryGetRegion(string countryCode, out Region region);
public override bool TryGetRegion(string countryCode, out Region value) { return(RegionsByCountryCode.TryGetValue(countryCode, out value)); }
public bool TryGetRegion(int countryCode, out Region value) { return(TryGetRegion(countryCode.ToString(CultureInfo.InvariantCulture), out value)); }