Class PhoneNumber
PhoneNumber class
Represents a phone number.
public class PhoneNumber : IComparable<PhoneNumber>, IEquatable<PhoneNumber>
Constructors
Properties
Name | Description |
---|
Category { get; set; } | Gets or sets an object category |
Number { get; set; } | Gets or sets a phone number |
Prefered { get; set; } | Gets or sets a value which defines whether phone number is preferred. |
Methods
Name | Description |
---|
CompareTo(PhoneNumber) | 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. |
override Equals(object) | Determines whether the specified Object is equal to the current Object. |
Equals(PhoneNumber) | Determines whether the specified Object is equal to the current Object. |
Equals(PhoneNumber, PhoneNumber) | Determines whether the specified object instances are considered equal. |
override GetHashCode() | GetHashCode returns a hash function for this object. |
virtual GetHashCode(PhoneNumber) | GetHashCode returns a hash function for specified object. |
override ToString() | Returns a string that represents the current object. |
operator == | Determines whether the specified objects are equal. |
operator != | Determines whether the specified objects are not equal. |
See Also