Class UriScheme

Namespace: AutoFixture
Assembly: AutoFixture.dll

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 ('-').

public class UriScheme : IEquatable<UriScheme>

Inheritance

objectUriScheme

Implements

IEquatable<UriScheme>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

UriScheme()

Initializes a new instance of the UriScheme class using "scheme" as the default URI scheme name.

public UriScheme()

UriScheme(string)

Initializes a new instance of the UriScheme class.

public UriScheme(string scheme)

Parameters

scheme string

The scheme name.

Properties

Scheme

Gets the scheme name.

public string Scheme { get; }

Property Value

string

Methods

Equals(object)

Determines whether the specified Object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The Object to compare with this instance.

Returns

bool

true if the specified Object is equal to this instance; otherwise, false.

Exceptions

NullReferenceException

The obj parameter is null.

Equals(UriScheme)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(UriScheme other)

Parameters

other UriScheme

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Returns a String that represents the URI scheme name for this instance.

public override string ToString()

Returns

string

A String that represents the URI scheme name for this instance.