PhoneFormatDefinition Struct
Assembly: PTS.Globalization.dll
public struct PhoneFormatDefinition
Constructors
Declaration
public PhoneFormatDefinition(CountryCode country, ushort prefix, ushort digits)
Parameters
Type |
Name |
Description |
CountryCode |
country |
|
System.UInt16 |
prefix |
|
System.UInt16 |
digits |
|
Fields
Declaration
public CountryCode Country
Field Value
Declaration
Field Value
Type |
Description |
System.UInt16 |
|
Declaration
Field Value
Type |
Description |
System.UInt16 |
|
Methods
Declaration
public bool IsValid(string phoneNumber)
Parameters
Type |
Name |
Description |
System.String |
phoneNumber |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public string Sanitize(string phoneNumber)
Parameters
Type |
Name |
Description |
System.String |
phoneNumber |
|
Returns
Type |
Description |
System.String |
|
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Extension Methods