protected virtual PropertyInfo GetInterfaceNamedStructureIdProperty(Type structureType, IEnumerable <PropertyInfo> properties) { if (!structureType.IsInterface) { return(null); } var propertyName = StructureIdPropertyNames.GetInterfaceTypeNamePropertyNameFor(structureType); return(properties.SingleOrDefault(p => p.Name.Equals(propertyName))); }