SimCardNumber Structure

Refers to a SIM ICCID (Integrated Circuit Card Identifier) used by a DeviceDto.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
[StructLayoutAttribute(LayoutKind.Explicit, Size = 16, CharSet = CharSet.Ansi)]
public readonly struct SimCardNumber : IComparable, 
	IComparable<SimCardNumber>, IEquatable<SimCardNumber>, IParsable<SimCardNumber>
Inheritance
Object    ValueType    SimCardNumber
Implements
IComparable, IComparableSimCardNumber, IEquatableSimCardNumber, IParsableSimCardNumber

Remarks

The specification is based on the documentation taken from

Constructors

SimCardNumber Private constructor to create a new instance of SimCardNumber.

Methods

AsSpan Returns the Sim Card ICCID as an array of bytes. This method is comparable to reinterpret_cast in C++.
CompareTo(Object)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
CompareTo(SimCardNumber)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Equals(SimCardNumber)Indicates whether the current object is equal to another object of the same type.
GetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
ParseParses a string into a value.
ToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
TryParseTries to parse a string into a value.
TryParseInner Parses a SIM Card ICCID number from a string.

Operators

Equality(SimCardNumber, SimCardNumber) Checks for equality between two SimCardNumber instances.
GreaterThan(SimCardNumber, SimCardNumber) Compares two SimCardNumber instances for left hand being greater than the right hand.
GreaterThanOrEqual(SimCardNumber, SimCardNumber) Compares two SimCardNumber instances for left hand being greater than or equal to the right hand.
(SimCardNumber to String) Implicit operator to convert a SimCardNumber to a String.
(UInt128 to SimCardNumber) Creates a sim card number based on number input.
Inequality(SimCardNumber, SimCardNumber) Checks for inequality between two MacAddress instances.
LessThan(SimCardNumber, SimCardNumber) Compares two MacAddress instances for left hand being less than the right hand.
LessThanOrEqual(SimCardNumber, SimCardNumber) Compares two MacAddress instances for left hand being less or equal to the right hand.

Fields

Empty Empty Sim Card Number, used to represent a value.
Number The SIM Card number.

See Also