Class DomainName
Represents a domain name.
Inheritance
System.Object
DomainName
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public class DomainName
Constructors
| Improve this Doc View SourceDomainName(String)
Initializes a new instance of the DomainName class. Throws ArgumentNullException if domainName is null. Throws ArgumentException if domainName is empty.
Declaration
public DomainName(string domainName)
Parameters
Type | Name | Description |
---|---|---|
System.String | domainName |
Properties
| Improve this Doc View SourceDomain
Get the name of the domain.
Declaration
public string Domain { 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
System.Object.Equals(System.Object)
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
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Returns a System.String that represents the domain name for this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the domain name for this instance. |
Overrides
System.Object.ToString()