Class UriScheme
Represents a URI scheme name. Scheme names consist of a sequence of characters beginning with a letter and followed by any combination of letters, digits, plus ('+'), period ('.'), or hyphen ('-').
Inheritance
Implements
Inherited Members
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public class UriScheme : IEquatable<UriScheme>
Constructors
| Improve this Doc View SourceUriScheme()
Initializes a new instance of the UriScheme class using "scheme" as the default URI scheme name.
Declaration
public UriScheme()
UriScheme(String)
Initializes a new instance of the UriScheme class.
Declaration
public UriScheme(string scheme)
Parameters
Type | Name | Description |
---|---|---|
System.String | scheme | The scheme name. |
Properties
| Improve this Doc View SourceScheme
Gets the scheme name.
Declaration
public string Scheme { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(UriScheme)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(UriScheme other)
Parameters
Type | Name | Description |
---|---|---|
UriScheme | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the other parameter; otherwise, false. |
Equals(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 URI scheme name for this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the URI scheme name for this instance. |