C# 클래스 Nimrod.MethodExtensions

파일 보기 프로젝트 열기: resgroup/nimrod

공개 메소드들

메소드 설명
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