C# Class Isop.Controller.ControllerRecognizer

显示文件 Open project: Lundalogik/isop

Public Methods

Method Description
ControllerRecognizer ( Type type, CultureInfo cultureInfo = null, Func typeConverter = null, bool ignoreGlobalUnMatchedParameters = false, bool allowInferParameter = false ) : System

GetRecognizers ( string methodname ) : IEnumerable
Parse ( IEnumerable arg ) : ParsedMethod

Note that in order to register a converter you can use: TypeDescriptor.AddAttributes(typeof(AType), new TypeConverterAttribute(typeof(ATypeConverter)));

Parse ( MethodInfo methodInfo, ParsedArguments parsedArguments ) : ParsedMethod
ParseArgumentsAndMerge ( ParsedArguments parsedArguments, Action action = null ) : ParsedArguments
Recognize ( IEnumerable arg ) : bool

Private Methods

Method Description
FindMethodInfo ( IList arg ) : MethodInfo

Method Details

ControllerRecognizer() public method

public ControllerRecognizer ( Type type, CultureInfo cultureInfo = null, Func typeConverter = null, bool ignoreGlobalUnMatchedParameters = false, bool allowInferParameter = false ) : System
type System.Type
cultureInfo System.Globalization.CultureInfo
typeConverter Func
ignoreGlobalUnMatchedParameters bool
allowInferParameter bool
return System

GetRecognizers() public method

public GetRecognizers ( string methodname ) : IEnumerable
methodname string
return IEnumerable

Parse() public method

Note that in order to register a converter you can use: TypeDescriptor.AddAttributes(typeof(AType), new TypeConverterAttribute(typeof(ATypeConverter)));
public Parse ( IEnumerable arg ) : ParsedMethod
arg IEnumerable
return ParsedMethod

Parse() public method

public Parse ( MethodInfo methodInfo, ParsedArguments parsedArguments ) : ParsedMethod
methodInfo System.Reflection.MethodInfo
parsedArguments Isop.Parse.ParsedArguments
return ParsedMethod

ParseArgumentsAndMerge() public method

public ParseArgumentsAndMerge ( ParsedArguments parsedArguments, Action action = null ) : ParsedArguments
parsedArguments Isop.Parse.ParsedArguments
action Action
return Isop.Parse.ParsedArguments

Recognize() public method

public Recognize ( IEnumerable arg ) : bool
arg IEnumerable
return bool