Just check if base class is implementing the interface, if yes filter it out.
Type type = typeof(Type); Type[] nonInheritedInterfaces = type.GetInterfaces().Where((ifc) => !ifc.IsAssignableFrom(type.BaseType)) .ToArray();*Yes, if you are still on 2.0 you could rewrite it to loop.
1 comment:
Great! thank you.
Post a Comment