Class ParameterResolver
Utility class that parses parameters
Namespace: Seltzr.Filters
Assembly: Seltzr.dll
Syntax
C#
public static class ParameterResolver
Methods
Parses a parameter
C#
public static object ParseParameter(string input, Type keyType)
Parameters
inputString
The input received from the HTTP request data
keyTypeType
The expected type of the parameter
Returns
The parsed primary key
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If the type is not one of the types int, long, float, double, Guid, decimal, DateTime, string, or bool |