Refit.FormField<TBody>
Describes a single form-url-encoded field for a strongly-typed body, allowing source-generated code to
flatten a form body without reflection. The getter and all naming metadata are resolved at compile time
by the Refit source generator; the runtime only formats the value using the configured
RefitSettings.
namespace Refit
{
public sealed class FormField<TBody>
{
public Func<TBody, object> Getter { get; }
public string ClrName { get; }
public string ExplicitName { get; }
public string PrefixSegment { get; }
public string Format { get; }
public CollectionFormat? CollectionFormat { get; }
public bool SerializeNull { get; }
public FormField(Func<TBody, object> getter, string clrName, string explicitName, string prefixSegment, string format, CollectionFormat? collectionFormat, bool serializeNull);
public string ResolveFieldName(IUrlParameterKeyFormatter urlParameterKeyFormatter);
}
}