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
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
public string? DefaultValue { get; init; }
Property Value
- string
protected override Type EqualityContract { get; }
Property Value
- Type
public string Key { get; init; }
Property Value
- string
public AdapterFormFieldKind Kind { get; init; }
Property Value
- AdapterFormFieldKind
public string LabelKey { get; init; }
Property Value
- string
public IReadOnlyList<AdapterFormOption> Options { get; init; }
Property Value
- IReadOnlyList<AdapterFormOption>
public bool Required { get; init; }
Property Value
- bool
Methods
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>
public override sealed bool Equals(AdapterFormControl? other)
Parameters
other AdapterFormControl
Returns
- bool
public bool Equals(AdapterFormField? other)
Parameters
other AdapterFormField
Returns
- bool
public override bool Equals(object? obj)
Parameters
obj object
Returns
- bool
public override int GetHashCode()
Returns
- int
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builder StringBuilder
Returns
- bool
public override string ToString()
Returns
- string
Operators
public static bool operator ==(AdapterFormField? left, AdapterFormField? right)
Parameters
left AdapterFormField
right AdapterFormField
Returns
- bool
public static bool operator !=(AdapterFormField? left, AdapterFormField? right)
Parameters
left AdapterFormField
right AdapterFormField
Returns
- bool