Class PhoneNumber
- Namespace
- PhoneNumbers
- Assembly
- PhoneNumbers.dll
public sealed class PhoneNumber : IEquatable<PhoneNumber>
- Inheritance
-
PhoneNumber
- Implements
- Inherited Members
- Extension Methods
Fields
CountryCodeFieldNumber
public const int CountryCodeFieldNumber = 1
Field Value
CountryCodeSourceFieldNumber
public const int CountryCodeSourceFieldNumber = 6
Field Value
ExtensionFieldNumber
public const int ExtensionFieldNumber = 3
Field Value
ItalianLeadingZeroFieldNumber
public const int ItalianLeadingZeroFieldNumber = 4
Field Value
NationalNumberFieldNumber
public const int NationalNumberFieldNumber = 2
Field Value
NumberOfLeadingZerosFieldNumber
public const int NumberOfLeadingZerosFieldNumber = 8
Field Value
PreferredDomesticCarrierCodeFieldNumber
public const int PreferredDomesticCarrierCodeFieldNumber = 7
Field Value
RawInputFieldNumber
public const int RawInputFieldNumber = 5
Field Value
Properties
CountryCode
public int CountryCode { get; }
Property Value
CountryCodeSource
public PhoneNumber.Types.CountryCodeSource CountryCodeSource { get; }
Property Value
- PhoneNumber.Types.CountryCodeSource
DefaultInstance
public static PhoneNumber DefaultInstance { get; }
Property Value
DefaultInstanceForType
public PhoneNumber DefaultInstanceForType { get; }
Property Value
Extension
public string Extension { get; }
Property Value
HasCountryCode
public bool HasCountryCode { get; }
Property Value
HasCountryCodeSource
public bool HasCountryCodeSource { get; }
Property Value
HasExtension
public bool HasExtension { get; }
Property Value
HasNationalNumber
public bool HasNationalNumber { get; }
Property Value
HasNumberOfLeadingZeros
public bool HasNumberOfLeadingZeros { get; }
Property Value
HasPreferredDomesticCarrierCode
public bool HasPreferredDomesticCarrierCode { get; }
Property Value
HasRawInput
public bool HasRawInput { get; }
Property Value
IsInitialized
public bool IsInitialized { get; }
Property Value
NationalNumber
public ulong NationalNumber { get; }
Property Value
NumberOfLeadingZeros
public int NumberOfLeadingZeros { get; }
Property Value
PreferredDomesticCarrierCode
public string PreferredDomesticCarrierCode { get; }
Property Value
RawInput
public string RawInput { get; }
Property Value
Methods
CreateBuilder()
public static PhoneNumber.Builder CreateBuilder()
Returns
CreateBuilder(PhoneNumber)
public static PhoneNumber.Builder CreateBuilder(PhoneNumber prototype)
Parameters
prototypePhoneNumber
Returns
CreateBuilderForType()
public PhoneNumber.Builder CreateBuilderForType()
Returns
Equals(PhoneNumber)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PhoneNumber other)
Parameters
otherPhoneNumberAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToBuilder()
public PhoneNumber.Builder ToBuilder()