
FieldValues
- Namespace
- Rowles.LeanCorpus.Codecs.CodecKit.Codecs
- Assembly
- Rowles.LeanCorpus.dll
Provides named access to the decoded field values inside a
Build(Func<FieldValues, T>) factory delegate.
Access values by the name passed to .Field(...) and cast to the expected type.
public readonly struct FieldValues
Remarks
This type enables an open-ended Build overload that scales to any number of fields
without requiring typed-arity overloads. For example:
.Build(f => new MyRecord(
(string)f["name"],
(int)f["count"]))
this[string]
Gets the decoded value of the field registered with name.
Cast the returned value to the expected field type.