public static IEnumerable <Product> GetProducts <T>(this T cheque, DepartmentFlag flag) where T : Structure.Cheque { foreach (Product Item in ReciptCollector.SelectProducts(cheque, flag)) { yield return(Item); } yield break; }
public static IEnumerable <RawItem> GetRecipe <T>(this T product, DepartmentFlag flag) where T : Product { foreach (RawItem Item in ReciptCollector.SelectRawItems(product, flag)) { yield return(Item); } yield break; }
public static IEnumerable <RawItem> GetRecipe <T>(this T product) where T : Structure.Product { foreach (RawItem Item in ReciptCollector.SelectRawItems(product)) { yield return(Item); } yield break; }