C# 클래스 Telemachus.TypeCheckingExtensions

Contains extension methods for checking interface equivalence
파일 보기 프로젝트 열기: KSP-Telemachus/Telemachus

공개 메소드들

메소드 설명
DoesMatchInterfaceOf ( this target, Type thisInterface ) : bool

Tests all members of the target against a supplied interface to determine if it implements it 'In spirit' if not physically.

IsEquivalentTo ( this first, MethodInfo second ) : bool

Tests two MethodInfo's for return, public and parameter list equivalence

IsEquivalentTo ( this first, ParameterInfo second ) : bool

Tests two lists of parameters for length and type equivalence

IsSupersetOf ( this target, PropertyInfo baseline ) : bool

Tests if a property is the superset of another one e.g. the same type and at least the same accessors

메소드 상세

DoesMatchInterfaceOf() 공개 정적인 메소드

Tests all members of the target against a supplied interface to determine if it implements it 'In spirit' if not physically.
public static DoesMatchInterfaceOf ( this target, Type thisInterface ) : bool
target this The type to test
thisInterface System.Type The interface to test against
리턴 bool

IsEquivalentTo() 공개 정적인 메소드

Tests two MethodInfo's for return, public and parameter list equivalence
public static IsEquivalentTo ( this first, MethodInfo second ) : bool
first this
second System.Reflection.MethodInfo
리턴 bool

IsEquivalentTo() 공개 정적인 메소드

Tests two lists of parameters for length and type equivalence
public static IsEquivalentTo ( this first, ParameterInfo second ) : bool
first this
second System.Reflection.ParameterInfo
리턴 bool

IsSupersetOf() 공개 정적인 메소드

Tests if a property is the superset of another one e.g. the same type and at least the same accessors
public static IsSupersetOf ( this target, PropertyInfo baseline ) : bool
target this The property to test. This can have more accessible accessors than the baseline.
baseline System.Reflection.PropertyInfo The baseline, which specifies the type and minimum access levels.
리턴 bool