C# Класс Nimrod.MethodExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

FirstOrDefaultHttpMethodAttribute() публичный статический Метод

returns the first Attribut of type HttpMethod found
public static FirstOrDefaultHttpMethodAttribute ( this method ) : HttpMethodAttribute?
method this
Результат HttpMethodAttribute?

GetReturnType() публичный статический Метод

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
Результат System.Type

GetReturnTypeAndParameterTypes() статический публичный Метод

Returns the return type and the arguments type of the method
static public GetReturnTypeAndParameterTypes ( this method ) : IEnumerable
method this
Результат IEnumerable