using System.Collections.Generic; using System.Linq; namespace Gallium { public static class WhereAllComponentsExtensions { public static IEnumerable WhereAllComponents( this IEnumerable entities) { return entities.Where(x => x.Has()); } public static IEnumerable WhereAllComponents( this IEnumerable entities) { return entities.Where(x => x.Has() && x.Has()); } public static IEnumerable WhereAllComponents( this IEnumerable entities) { return entities.Where( x => x.Has() && x.Has() && x.Has()); } public static IEnumerable WhereAllComponents( this IEnumerable entities) { return entities.Where( x => x.Has() && x.Has() && x.Has() && x.Has()); } } }