C# Class Framework.Mvc.Extensions.FormCollectionExtensions

Extends functionality of FormCollection class.
显示文件 Open project: coreframework/Core-Framework

Public Methods

Method Description
BooleanValue ( String formValue ) : bool

Parse boolean value posted throught http-form.

BooleanValue ( this form, String key ) : bool

Parse boolean value posted throught http-form.

IntValue ( this form, String key ) : int

Parse int value posted throught http-form.

Method Details

BooleanValue() public static method

Parse boolean value posted throught http-form.
public static BooleanValue ( String formValue ) : bool
formValue String The form value to parse.
return bool

BooleanValue() public static method

Parse boolean value posted throught http-form.
public static BooleanValue ( this form, String key ) : bool
form this The form collection instance that this method extends.
key String The posted value key.
return bool

IntValue() public static method

Parse int value posted throught http-form.
public static IntValue ( this form, String key ) : int
form this The form collection instance that this method extends.
key String The posted value key.
return int