/// <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()); }
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); }