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
MaskCharcharThe mask character.
MinintThe minimum required number of characters.
MaxintThe 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
Max
The maximum allowed number of characters.
public int Max { readonly get; set; }
Property Value
Min
The minimum required number of characters.
public int Min { readonly get; set; }
Property Value
Methods
Deconstruct(out char, out int, out int)
public readonly void Deconstruct(out char MaskChar, out int Min, out int Max)
Parameters
Equals(Block)
public readonly bool Equals(Block other)
Parameters
otherBlock
Returns
Equals(object)
public override readonly bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
ToString()
public override readonly string ToString()
Returns
Operators
operator ==(Block, Block)
public static bool operator ==(Block left, Block right)
Parameters
Returns
operator !=(Block, Block)
public static bool operator !=(Block left, Block right)