ItuE164SubscriberNumber Struct

Definition

Namespace: DataStandardizer.Communication.E164

The subscriber number field of a network, group-of-countries, or trial number.

public readonly struct ItuE164SubscriberNumber : IItuE164Field

Remarks

The value is constructible from a ulong or a digit string; a non-digit string throws ArgumentException (constructor) or InvalidCastException (cast). Implicit conversions to and from ulong are defined, as is an explicit conversion from string. DigitCount reports the number of digits.

Constructors

Constructor Notes
ItuE164SubscriberNumber(string value) Throws ArgumentException if value is not all digits.
ItuE164SubscriberNumber(ulong value)  

Properties

Property Signature Notes
DigitCount int DigitCount { get; } Number of digits in the value. Implements IItuE164Field.DigitCount.

Methods

Method Returns Notes
ToString() string Override. The digit string.

Operators

Operator Signature Notes
Explicit explicit operator ItuE164SubscriberNumber(string) Throws InvalidCastException if not all digits.
Implicit implicit operator ItuE164SubscriberNumber(ulong)  
Implicit implicit operator ulong(ItuE164SubscriberNumber)  

Applies to

Targets netstandard1.0, netstandard2.0, net8.0, and net10.0.

See also

</content>


This site uses Just the Docs, a documentation theme for Jekyll.