I have the following case:
public interface IPerson { .. } public class Person : IPerson { .. } public class User : Person { .. }
See Implementations of interface through Reflection.
Check the Type.IsAssignableFrom method.
var control = _container.Resolve(objType); var prop = viewType.GetProperty("SomeUser"); if ((prop != null) && (prop.PropertyType.GetInterfaces().Contains(typeof(IPerson))) { .. }