SouthAfricanTelephoneNumberParser 1.1.4
dotnet add package SouthAfricanTelephoneNumberParser --version 1.1.4
NuGet\Install-Package SouthAfricanTelephoneNumberParser -Version 1.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SouthAfricanTelephoneNumberParser" Version="1.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SouthAfricanTelephoneNumberParser --version 1.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SouthAfricanTelephoneNumberParser, 1.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SouthAfricanTelephoneNumberParser as a Cake Addin #addin nuget:?package=SouthAfricanTelephoneNumberParser&version=1.1.4 // Install SouthAfricanTelephoneNumberParser as a Cake Tool #tool nuget:?package=SouthAfricanTelephoneNumberParser&version=1.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Notes:
- References Wikipedia for information regarding South African telephone numbers
- URL: https://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa
- CanSms is a derived field based on whether it is a cellular network.
Usage:
var lib = new TelephoneLibrary();
var info = lib.FindNumberInformation("0111231234");
Full Console Example:
using SouthAfricanTelephoneNumberParser;
using SouthAfricanTelNumbers;
using System.Reflection;
var lib = new TelephoneLibrary();
var results = new List<TelephonNumberInfo>();
results.Add(lib.FindNumberInformation("0111231234"));
results.Add(lib.FindNumberInformation("0831234321"));
results.Add(lib.FindNumberInformation("+27 74 123 1234"));
results.Add(lib.FindNumberInformation("(+27) a 74-321 4321"));
foreach (var number in results) {
Console.WriteLine($"Item: {number.SuppliedTelNumber}");
Console.WriteLine($"==============================");
foreach (PropertyInfo prop in number.GetType().GetProperties()) {
Console.WriteLine($"{prop.Name}: {prop.GetValue(number)}");
}
Console.WriteLine(Environment.NewLine);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
First