Skip to content

1.7.0

Compare
Choose a tag to compare
@TrevorPilley TrevorPilley released this 02 Feb 16:31
· 621 commits to main since this release

Features

This release adds support for Switzerland, adopts the E.164 naming for phone number parts and adds the national significant number as a property.

Bug fixes

None

API changes

CountryInfo

HasAreaCodes has been replaced by HasNationalDestinationCodes. New properties have been added and the old properties have been marked obsolete.

+ public static CountryInfo Switzerland { get; }
- public bool HasAreaCodes { get; }
+ public bool HasNationalDestinationCodes { get; }

PhoneNumber

NationalSignificantNumber has been added, AreaCode has been replaced by NationalDestinationCode and LocalNumber has been replaced by SubscriberNumber. New properties have been added and the old properties have been marked obsolete. The default string format has been changed from I to E, the output is the same and I is still supported but will be removed in a future version.

- public string? AreaCode { get; }
- public string LocalNumber { get; }
+ public string? NationalDestinationCode { get; }
+ public string NationalSignificantNumber { get; }
+ public string SubscriberNumber { get; }
- public string ToString(“I”);
+ public string ToString(“E”);