Struct EnumValuesEnumerator<TKey, TValue>
Namespace: Aspid.FastTools.Enums
Assembly: Aspid.FastTools.dll
Allocation-free enumerator over the resolved entries of an EnumValues<T>
(TKey = Enum) or an EnumValues<T1, T2>
(TKey = the enum type). Boxed only when consumed through the
IEnumerable<T> interface (e.g. LINQ).
public struct EnumValuesEnumerator<TKey, TValue> : IEnumerator<KeyValuePair<TKey, TValue?>>, IEnumerator, IDisposable
Type Parameters
TKey
The key type the entries are yielded as.
TValue
The type of the value associated with each enum member.
Implements
IEnumerator<KeyValuePair<TKey, TValue?>>, IEnumerator, IDisposable
Extension Methods
TextInputBaseFieldTextSelectionExtensions.AddOnCursorIndexChange<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, Action), TextInputBaseFieldTextSelectionExtensions.AddOnSelectIndexChange<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, Action), INotifyValueChangedExtensions.AddValueChanged<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, EventCallback<ChangeEvent<TValue>>), ProfilerMarkerExtensionsForGenerator.Marker<EnumValuesEnumerator<TKey, TValue>>(EnumValuesEnumerator<TKey, TValue>), TextInputBaseFieldTextSelectionExtensions.RemoveOnCursorIndexChange<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, Action), TextInputBaseFieldTextSelectionExtensions.RemoveOnSelectIndexChange<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, Action), INotifyValueChangedExtensions.RemoveValueChanged<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, EventCallback<ChangeEvent<TValue>>), TextInputBaseFieldExtensions.SetAutoCorrection<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldTextSelectionExtensions.SetCursorIndex<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, int), TextInputBaseFieldExtensions.SetDelayed<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldTextSelectionExtensions.SetDoubleClickSelectsWord<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldExtensions.SetHideMobileInput<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldExtensions.SetHidePlaceholderOnFocus<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldExtensions.SetHideSoftKeyboard<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), SliderExtensions.SetHighValue<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, TValue), TextInputBaseFieldExtensions.SetKeyboardType<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, TouchScreenKeyboardType), BaseFieldExtensions.SetLabel<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, string), SliderExtensions.SetLowValue<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, TValue), TextInputBaseFieldExtensions.SetMaskChar<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, char), TextInputBaseFieldExtensions.SetMaxLength<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, int), TextInputBaseFieldExtensions.SetPassword<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldExtensions.SetPlaceholder<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, string), TextInputBaseFieldExtensions.SetReadOnly<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldTextSelectionExtensions.SetSelectAllOnFocus<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldTextSelectionExtensions.SetSelectAllOnMouseUp<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldTextSelectionExtensions.SetSelectIndex<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, int), TextInputBaseFieldTextSelectionExtensions.SetSelectable<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), TextInputBaseFieldTextSelectionExtensions.SetTripleClickSelectsLine<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, bool), INotifyValueChangedExtensions.SetValue<EnumValuesEnumerator<TKey, TValue>, TValue>(EnumValuesEnumerator<TKey, TValue>, TValue, bool)
Properties
Current
The entry at the current position; default before the first
EnumValuesEnumerator<T1, T2>.MoveNext and after the last one.
public readonly KeyValuePair<TKey, TValue?> Current { get; }
Property Value
KeyValuePair<TKey, TValue?>
Methods
MoveNext()
Advances to the next resolved entry, skipping entries whose key could not be parsed.
public bool MoveNext()