コード例 #1
0
 public UniversalPropertyIdentifier(IsoCountryCode country)
 {
     Country     = country;
     _countryUpi = country.ToCountryUpi();
 }
コード例 #2
0
 public UniversalPropertyIdentifier(string upi)
 {
     _countryUpi = upi.ParseUpi().ToCountryUpi()
                   ?? new InvalidCountry($"{upi} is not recognized as a valid UPI. Valid Countries are {string.Join(", ", Enum.GetNames(typeof(IsoCountryCode)))}");
 }