Class Password

Namespace
Cratis.Chronicle.Security
Assembly
Cratis.Chronicle.dll

Represents a password.

public record Password : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<Password>
Inheritance
Password
Implements
Inherited Members
Extension Methods

Constructors

Password(Password)

protected Password(Password original)

Parameters

original Password

Password(string)

Represents a password.

public Password(string Value)

Parameters

Value string

The actual value.

Fields

Empty

Gets the representation of an empty Password.

public static readonly Password Empty

Field Value

Password

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(Password?)

public virtual bool Equals(Password? other)

Parameters

other Password

Returns

bool

Equals(ConceptAs<string>?)

public override sealed bool Equals(ConceptAs<string>? other)

Parameters

other ConceptAs<string>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

Operators

operator ==(Password?, Password?)

public static bool operator ==(Password? left, Password? right)

Parameters

left Password
right Password

Returns

bool

implicit operator Password(string)

Implicitly convert from a string to Password.

public static implicit operator Password(string value)

Parameters

value string

String to convert from.

Returns

Password

operator !=(Password?, Password?)

public static bool operator !=(Password? left, Password? right)

Parameters

left Password
right Password

Returns

bool