Zum Inhalt springen
Diese Seite wurde noch nicht übersetzt.

IParametersProvider Interface

Extracts a flat set of name/value pairs from a response object - the reverse of binding - for delivery as query, fragment or form_post parameters. The transport adapters (MVC, Minimal API) share this contract because flattening a response DTO is framework-neutral; the implementation lives in the core for the same reason.

C#
public interface IParametersProvider

Derived
↳ ParametersProvider

Methods

IParametersProvider.GetParameters(object) Method

Retrieves the parameters as name/value pairs from the specified object.

C#
System.Collections.Generic.IEnumerable<(string name,string? value)> GetParameters(object obj);

Parameters

obj System.Object

The object to extract parameters from.

Returns

System.Collections.Generic.IEnumerable<<System.String,System.String>>
The parameter name/value pairs.