示例#1
0
 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;
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }