Class PostalAddressCategory

PostalAddressCategory class

Represents category for a postal address

public class PostalAddressCategory : IEquatable<PostalAddressCategory>

Constructors

NameDescription
PostalAddressCategory(string)Initializes a new instance of the PostalAddressCategory class with ‘Custom’ category.

Properties

NameDescription
static Custom { get; }Defines a type of an address as an address of type other.
static Home { get; }Defines a type of an address as a home address.
static Work { get; }Defines a type of an address as a work address.
Description { get; }Gets description for the ‘Custom’ category of a postal address
Value { get; }Gets category of a postal address

Methods

NameDescription
override Equals(object)Determines whether the specified Object is equal to the current Object.
virtual Equals(PostalAddressCategory)Determines whether the specified object is equal to the current object.
override GetHashCode()GetHashCode returns a hash function for this 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.

Fields

NameDescription
const CustomValueString value for ‘Custom’ category
const HomeValueString value for ‘Home’ category
const WorkValueString value for ‘Work’ category

See Also