Ejemplo n.º 1
0
        /// <summary>
        /// Get a list of exchanges that are available to make this item
        /// </summary>
        public InventoryRecipe[] GetRecipes()
        {
            if (string.IsNullOrEmpty(this.ExchangeSchema))
            {
                return(null);
            }

            var parts = this.ExchangeSchema.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);

            return(parts.Select(x => InventoryRecipe.FromString(x, this)).ToArray());
        }
Ejemplo n.º 2
0
 public InventoryRecipe[] GetRecipes()
 {
     InventoryRecipe[] array;
     if (!String.IsNullOrEmpty(this.ExchangeSchema))
     {
         string[] strArray = this.ExchangeSchema.Split(new Char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
         array = (
             from x in strArray
             select InventoryRecipe.FromString(x, this)).ToArray <InventoryRecipe>();
     }
     else
     {
         array = null;
     }
     return(array);
 }