protected IEnumerable <string> GetProperties(ModelInterfaceExtenders extenders, Type targetInterface) { var types = extenders.GetInterfaceExtenders(targetInterface).Where( type => (type.Namespace + "").StartsWith("DevExpress")); var properties = types.SelectMany(type => type.GetPublicProperties()); return(targetInterface.GetPublicProperties().Union(properties).Select(info => info.Name)); }
public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders) { foreach (Type extendedInterface in modelInterfaceExtenders.GetExtendedInterfaces()) { foreach (Type interfaceExtender in modelInterfaceExtenders.GetInterfaceExtenders(extendedInterface)) { extenders.Add(extendedInterface, interfaceExtender); } } }