Table of Contents

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

int

CountryCodeSourceFieldNumber

public const int CountryCodeSourceFieldNumber = 6

Field Value

int

ExtensionFieldNumber

public const int ExtensionFieldNumber = 3

Field Value

int

ItalianLeadingZeroFieldNumber

public const int ItalianLeadingZeroFieldNumber = 4

Field Value

int

NationalNumberFieldNumber

public const int NationalNumberFieldNumber = 2

Field Value

int

NumberOfLeadingZerosFieldNumber

public const int NumberOfLeadingZerosFieldNumber = 8

Field Value

int

PreferredDomesticCarrierCodeFieldNumber

public const int PreferredDomesticCarrierCodeFieldNumber = 7

Field Value

int

RawInputFieldNumber

public const int RawInputFieldNumber = 5

Field Value

int

Properties

CountryCode

public int CountryCode { get; }

Property Value

int

CountryCodeSource

public PhoneNumber.Types.CountryCodeSource CountryCodeSource { get; }

Property Value

PhoneNumber.Types.CountryCodeSource

DefaultInstance

public static PhoneNumber DefaultInstance { get; }

Property Value

PhoneNumber

DefaultInstanceForType

public PhoneNumber DefaultInstanceForType { get; }

Property Value

PhoneNumber

Extension

public string Extension { get; }

Property Value

string

HasCountryCode

public bool HasCountryCode { get; }

Property Value

bool

HasCountryCodeSource

public bool HasCountryCodeSource { get; }

Property Value

bool

HasExtension

public bool HasExtension { get; }

Property Value

bool

HasNationalNumber

public bool HasNationalNumber { get; }

Property Value

bool

HasNumberOfLeadingZeros

public bool HasNumberOfLeadingZeros { get; }

Property Value

bool

HasPreferredDomesticCarrierCode

public bool HasPreferredDomesticCarrierCode { get; }

Property Value

bool

HasRawInput

public bool HasRawInput { get; }

Property Value

bool

IsInitialized

public bool IsInitialized { get; }

Property Value

bool

NationalNumber

public ulong NationalNumber { get; }

Property Value

ulong

NumberOfLeadingZeros

public int NumberOfLeadingZeros { get; }

Property Value

int

PreferredDomesticCarrierCode

public string PreferredDomesticCarrierCode { get; }

Property Value

string

RawInput

public string RawInput { get; }

Property Value

string

Methods

CreateBuilder()

public static PhoneNumber.Builder CreateBuilder()

Returns

PhoneNumber.Builder

CreateBuilder(PhoneNumber)

public static PhoneNumber.Builder CreateBuilder(PhoneNumber prototype)

Parameters

prototype PhoneNumber

Returns

PhoneNumber.Builder

CreateBuilderForType()

public PhoneNumber.Builder CreateBuilderForType()

Returns

PhoneNumber.Builder

Equals(PhoneNumber)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PhoneNumber other)

Parameters

other PhoneNumber

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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()

Returns

PhoneNumber.Builder