C# Class Nimrod.MethodExtensions

Show file Open project: resgroup/nimrod

Public Methods

Method Description
FirstOrDefaultHttpMethodAttribute ( this method ) : HttpMethodAttribute?

returns the first Attribut of type HttpMethod found

GetReturnType ( this method ) : Type

Return method return's type of a controller It can be the type itself, or the containing type if it starts with 'Json' string Example : JsonNetResult'SomeObject' will return SomeObject

GetReturnTypeAndParameterTypes ( this method ) : IEnumerable

Returns the return type and the arguments type of the method

Method Details

FirstOrDefaultHttpMethodAttribute() public static method

returns the first Attribut of type HttpMethod found
public static FirstOrDefaultHttpMethodAttribute ( this method ) : HttpMethodAttribute?
method this
return HttpMethodAttribute?

GetReturnType() public static method

Return method return's type of a controller It can be the type itself, or the containing type if it starts with 'Json' string Example : JsonNetResult'SomeObject' will return SomeObject
public static GetReturnType ( this method ) : Type
method this The method
return System.Type

GetReturnTypeAndParameterTypes() static public method

Returns the return type and the arguments type of the method
static public GetReturnTypeAndParameterTypes ( this method ) : IEnumerable
method this
return IEnumerable