public IEnumerable <ModuleHeader <Nop> > GetAvailables(INopRequirements req) { foreach (ModuleHeader <Nop> p in Current) { if (!req.IsAllowed(p)) { continue; } yield return(p); } }
public Nop[] GetPayloadAvailables(INopRequirements req) { if (req == null) { return new Nop[] { } } ; List <Nop> ls = new List <Nop>(); foreach (Nop p in NopCollection.Current) { if (!req.IsAllowed(p)) { continue; } ls.Add(p); } return(ls.ToArray()); } }