C# 클래스 Pathoschild.DesignByContract.Framework.Constraints.RequiresReferenceTypeAttribute

상속: System.Attribute, IValidateContractUsageAttribute
파일 보기 프로젝트 열기: Pathoschild/DesignByContract

공개 메소드들

메소드 설명
GetError ( ParameterMetadata parameter ) : string

Get an error message indicating why the usage is invalid (or null if usage is valid).

GetError ( ReturnValueMetadata returnValue ) : string

Get an error message indicating why the usage is invalid (or null if usage is valid).

보호된 메소드들

메소드 설명
IsAllowedType ( string typeName, bool typeIsUnknown ) : bool

Get whether a type is a reference type.

메소드 상세

GetError() 공개 메소드

Get an error message indicating why the usage is invalid (or null if usage is valid).
public GetError ( ParameterMetadata parameter ) : string
parameter ParameterMetadata Represents a parameter annotated by a single contract annotation.
리턴 string

GetError() 공개 메소드

Get an error message indicating why the usage is invalid (or null if usage is valid).
public GetError ( ReturnValueMetadata returnValue ) : string
returnValue ReturnValueMetadata Represents a return value annotated by a single contract annotation.
리턴 string

IsAllowedType() 보호된 메소드

Get whether a type is a reference type.
protected IsAllowedType ( string typeName, bool typeIsUnknown ) : bool
typeName string The full name of the actual value type.
typeIsUnknown bool Whether the type is not known at compile-time. This occurs when the type is generic and the type isn't specified in code.
리턴 bool