C# 클래스 Catel.ApiCop.Rules.TooManyDependenciesApiCopRule

Rule to prevent too many dependencies on a class.
상속: ApiCopRule
파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
GetResultAsText ( string tag ) : string

Gets the result as text.

IsValid ( IApiCop apiCop, string tag ) : bool

Determines whether the specified ApiCop rule is valid.

SetNumberOfDependenciesInjected ( Type type, int numberOfDependencies ) : void

Sets the number of dependencies injected for the specified type.

TooManyDependenciesApiCopRule ( string name, string description, ApiCopRuleLevel level, string url = null ) : System

Initializes a new instance of the ApiCopRule class.

메소드 상세

GetResultAsText() 공개 메소드

Gets the result as text.
public GetResultAsText ( string tag ) : string
tag string The tag.
리턴 string

IsValid() 공개 메소드

Determines whether the specified ApiCop rule is valid.
public IsValid ( IApiCop apiCop, string tag ) : bool
apiCop IApiCop The ApiCop.
tag string The tag.
리턴 bool

SetNumberOfDependenciesInjected() 공개 메소드

Sets the number of dependencies injected for the specified type.
public SetNumberOfDependenciesInjected ( Type type, int numberOfDependencies ) : void
type System.Type The type.
numberOfDependencies int The number of dependencies.
리턴 void

TooManyDependenciesApiCopRule() 공개 메소드

Initializes a new instance of the ApiCopRule class.
public TooManyDependenciesApiCopRule ( string name, string description, ApiCopRuleLevel level, string url = null ) : System
name string The name.
description string The description.
level ApiCopRuleLevel The level.
url string The URL.
리턴 System