Class MBSelectElement<T>
A list item used by MBSelect<TItem>, MBRadioButtonGroup<TItem> and MBPagedDataList<TItem>
public record MBSelectElement<T> : IEquatable<MBSelectElement<T>>
Type Parameters
T
- Inheritance
-
MBSelectElement<T>
- Implements
- Derived
- Inherited Members
Constructors
MBSelectElement()
public MBSelectElement()
MBSelectElement(MBSelectElement<T>)
protected MBSelectElement(MBSelectElement<T> original)
Parameters
original
MBSelectElement<T>
Properties
Disabled
Determines whether the list item is to be disabled
public bool? Disabled { get; set; }
Property Value
- bool?
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Label
The string label expressing the value.
public string Label { get; set; }
Property Value
SelectedValue
The value associated with the list element.
public T SelectedValue { get; set; }
Property Value
- T
Methods
Equals(MBSelectElement<T>?)
public virtual bool Equals(MBSelectElement<T>? other)
Parameters
other
MBSelectElement<T>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MBSelectElement<T>?, MBSelectElement<T>?)
public static bool operator ==(MBSelectElement<T>? left, MBSelectElement<T>? right)
Parameters
left
MBSelectElement<T>right
MBSelectElement<T>
Returns
operator !=(MBSelectElement<T>?, MBSelectElement<T>?)
public static bool operator !=(MBSelectElement<T>? left, MBSelectElement<T>? right)
Parameters
left
MBSelectElement<T>right
MBSelectElement<T>