Method NormalizePhoneNumber
NormalizePhoneNumber(String)
Removes any non-digit characters from phoneNumber
and returns a new string containing the result.
Declaration
public static string NormalizePhoneNumber(string phoneNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | phoneNumber | The value to have non-numeric characters removed. |
Returns
Type | Description |
---|---|
System.String | A new string containing the value of |
Remarks
If phoneNumber
is null or empty string, the same value is returned without modification.