C# Class SpeakFriend.Utilities.TypeExtensions

Show file Open project: teamaton/speak-lib

Public Methods

Method 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 method

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
return bool