how do you know if a type inherited some other type?
Type t; // i get the t from somewhere bool b = t.IsInhertitedFrom(typeof(BaseType));
bool b = t.IsSubclassOf (typeof (BaseType))
and check if the interface type uses the interface:
bool b = t.GetInterface (typeof (IMyInterface) .FullName)! = null
Source: https://habr.com/ru/post/1723879/More articles:Writing an Eclipse Plugin to Change Editor Settings - eclipseThrow FileLoadException or just an IOException - c #Removing non-alpha numbers in MySQL - functionCan my Eclipse plugin change the settings of other plugins? - eclipseLINQ to SQL: how to insert a record into a view? - c #Help in SQL structure for creating notification schedule - sqlSharePoint sends an email to the users specified in the field - emailBuilt-in .NET Framework interfaces, recommendations for creating a custom data structure? - c #How to skip a network using WebProxy? - c #Как импортировать файл по его полному пути с помощью C api? - pythonAll Articles