PeterO.Mail.Address

## PeterO.Mail.Address

public class Address

Represents an email address.

Member Summary

### Address Constructor

public Address(
    string addressValue);

Initializes a new instance of the PeterO.Mail.Address class.

Parameters:

Exceptions:

### Domain

public string Domain { get; }

Gets the domain of this email address (the part after the “@” sign).

Returns:

The domain of this email address (the part after the “@” sign).

### LocalPart

public string LocalPart { get; }

Gets the local part of this email address (the part before the “@” sign).

Returns:

The local part of this email address (the part before the “@” sign).

### Equals

public override bool Equals(
    object obj);

Determines whether this object and another object are equal.

Parameters:

Return Value:

true if this object and another object are equal; otherwise, false .

### GetHashCode

public override int GetHashCode();

Returns a hash code for this address object. No application or process identifiers are used in the hash code calculation.

Return Value:

A hash code for this instance.

### ToString

public override string ToString();

Converts this address object to a text string.

Return Value:

A string representation of this object.

Back to MailLib start page.