Class AdapterFormField

Namespace
MirrorPulse.Adapter.Sdk
Assembly
MirrorPulse.Adapter.Sdk.dll
public sealed record AdapterFormField : AdapterFormControl, IEquatable<AdapterFormControl>, IEquatable<AdapterFormField>
Inheritance
AdapterFormField
Implements
Inherited Members

Constructors

AdapterFormField(string, string, AdapterFormFieldKind, bool, string?, IReadOnlyList<AdapterFormOption>)

public AdapterFormField(string Key, string LabelKey, AdapterFormFieldKind Kind, bool Required, string? DefaultValue, IReadOnlyList<AdapterFormOption> Options)

Parameters

Key string
LabelKey string
Kind AdapterFormFieldKind
Required bool
DefaultValue string
Options IReadOnlyList<AdapterFormOption>

Properties

DefaultValue

public string? DefaultValue { get; init; }

Property Value

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Key

public string Key { get; init; }

Property Value

string

Kind

public AdapterFormFieldKind Kind { get; init; }

Property Value

AdapterFormFieldKind

LabelKey

public string LabelKey { get; init; }

Property Value

string

Options

public IReadOnlyList<AdapterFormOption> Options { get; init; }

Property Value

IReadOnlyList<AdapterFormOption>

Required

public bool Required { get; init; }

Property Value

bool

Methods

Deconstruct(out string, out string, out AdapterFormFieldKind, out bool, out string?, out IReadOnlyList<AdapterFormOption>)

public void Deconstruct(out string Key, out string LabelKey, out AdapterFormFieldKind Kind, out bool Required, out string? DefaultValue, out IReadOnlyList<AdapterFormOption> Options)

Parameters

Key string
LabelKey string
Kind AdapterFormFieldKind
Required bool
DefaultValue string
Options IReadOnlyList<AdapterFormOption>

Equals(AdapterFormControl?)

public override sealed bool Equals(AdapterFormControl? other)

Parameters

other AdapterFormControl

Returns

bool

Equals(AdapterFormField?)

public bool Equals(AdapterFormField? other)

Parameters

other AdapterFormField

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

ToString()

public override string ToString()

Returns

string

Operators

operator ==(AdapterFormField?, AdapterFormField?)

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

Parameters

left AdapterFormField
right AdapterFormField

Returns

bool

operator !=(AdapterFormField?, AdapterFormField?)

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

Parameters

left AdapterFormField
right AdapterFormField

Returns

bool