Show / Hide Table of Contents

Class ParameterResolver

Utility class that parses parameters

Inheritance
Object
ParameterResolver
Namespace: Seltzr.Filters
Assembly: Seltzr.dll
Syntax
C#
public static class ParameterResolver

Methods

| Improve this Doc View Source

ParseParameter(String, Type)

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

Object

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

  • Improve this Doc
  • View Source
Back to top Generated by DocFX