IQueryCollectionExtensions Class
Extends Query Collections to make it easier to retrieve collection values either individually or multi-values.
Based on concepts from Khalid Abuhakmeh: https://khalidabuhakmeh.com/read-and-convert-querycollection-values-in-aspnet
Westwind.AspNetCore.Extensions.IQueryCollectionExtensions
Class Members
Member | Description | |
---|---|---|
![]() ![]() |
Get | Retrieves a single value and casts it toa non-string value. For string use the non-Generic version
public static string Get(IQueryCollection collection, string key,
string defaultValue)
public static T Get
|
![]() ![]() |
GetAll | Retrieves multiple selection values for a keyand returns them as strings.
public static IEnumerable
public static IEnumerable
|
Assembly: Westwind.AspNetCore.dll
© West Wind Technologies, 2025 • Updated: 2025-03-08
Comment or report problem with topic