Table of Contents

Struct Block

Namespace
MudBlazor
Assembly
MudBlazor.dll

A set of contiguous characters used to build a BlockMask.

public struct Block : IEquatable<Block>
Implements
Inherited Members
Extension Methods

Remarks

Example: a mask character of a, Min of 2, and Max of 3, would allow ABC as a valid value.
Example: a mask character of 0, Min of 5, and Max of 7, would allow 09123 as a valid value.
Example: a mask character of *, Min of 1, and Max of 4, would allow B2A7 as a valid value.

Constructors

Block(char, int, int)

A set of contiguous characters used to build a BlockMask.

public Block(char MaskChar, int Min = 1, int Max = 1)

Parameters

MaskChar char

The mask character.

Min int

The minimum required number of characters.

Max int

The maximum allowed number of characters.

Remarks

Example: a mask character of a, Min of 2, and Max of 3, would allow ABC as a valid value.
Example: a mask character of 0, Min of 5, and Max of 7, would allow 09123 as a valid value.
Example: a mask character of *, Min of 1, and Max of 4, would allow B2A7 as a valid value.

Properties

MaskChar

The mask character.

public char MaskChar { readonly get; set; }

Property Value

char

Max

The maximum allowed number of characters.

public int Max { readonly get; set; }

Property Value

int

Min

The minimum required number of characters.

public int Min { readonly get; set; }

Property Value

int

Methods

Deconstruct(out char, out int, out int)

public readonly void Deconstruct(out char MaskChar, out int Min, out int Max)

Parameters

MaskChar char
Min int
Max int

Equals(Block)

public readonly bool Equals(Block other)

Parameters

other Block

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

ToString()

public override readonly string ToString()

Returns

string

Operators

operator ==(Block, Block)

public static bool operator ==(Block left, Block right)

Parameters

left Block
right Block

Returns

bool

operator !=(Block, Block)

public static bool operator !=(Block left, Block right)

Parameters

left Block
right Block

Returns

bool