C# Class Simplify.Web.ModelBinding.Binders.Parsers.ArrayToSpecifiedListParser

Provides string array to list parsing
ファイルを表示 Open project: i4004/Simplify.Web Class Usage Examples

Public Methods

Method Description
GetGenericListType ( Type type ) : Type

Gets the type of the generic list.

IsTypeValidForParsing ( Type type ) : bool

Determines whether specified type is valid for parsing.

ParseUndefined ( string values, Type type, string format = null ) : object

Parses the undefined values types from string array to list.

Method Details

GetGenericListType() public static method

Gets the type of the generic list.
public static GetGenericListType ( Type type ) : Type
type System.Type The type.
return System.Type

IsTypeValidForParsing() public static method

Determines whether specified type is valid for parsing.
Exception throws in case of underfined list type
public static IsTypeValidForParsing ( Type type ) : bool
type System.Type The type.
return bool

ParseUndefined() public static method

Parses the undefined values types from string array to list.
public static ParseUndefined ( string values, Type type, string format = null ) : object
values string The values.
type System.Type The type.
format string The format.
return object