C# Class SpeakFriend.Utilities.TypeExtensions

Afficher le fichier Open project: teamaton/speak-lib

Méthodes publiques

Méthode Description
IsAssignableToGenericType ( this givenType, Type genericType ) : bool

Checks whether this Type inherits from or implements the given generic Type or Interface.

Praise goes to http://stackoverflow.com/questions/74616/how-to-detect-if-type-is-another-generic-type/75502#75502.

Method Details

IsAssignableToGenericType() public static méthode

Checks whether this Type inherits from or implements the given generic Type or Interface.
Praise goes to http://stackoverflow.com/questions/74616/how-to-detect-if-type-is-another-generic-type/75502#75502.
public static IsAssignableToGenericType ( this givenType, Type genericType ) : bool
givenType this
genericType System.Type
Résultat bool