Class EmailAddressLocalPart
Represents the local part of the email address, defined as everything up to, but not including, the @ sign. Since EmailAddressLocalPart is used in constructing MailAddress, enforcement of rules on a valid email address is performed by System.Net.Mail.MailAddress and not EmailAddressLocalPart other than as noted.
Inheritance
Inherited Members
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public class EmailAddressLocalPart
Constructors
| Improve this Doc View SourceEmailAddressLocalPart(String)
Initializes a new instance of the EmailAddressLocalPart class. Throws ArgumentNullException if localPart is null. Throws ArgumentException if localPart is empty.
Declaration
public EmailAddressLocalPart(string localPart)
Parameters
Type | Name | Description |
---|---|---|
System.String | localPart | The local part. |
Properties
| Improve this Doc View SourceLocalPart
Get the local part.
Declaration
public string LocalPart { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | The |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
Returns a System.String that represents the local part for this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the local part for this instance. |