private string GetEnchantmentsText(Board.Enchantments enchantments) { string result = "[Enchantments]" + Environment.NewLine; foreach (var enchant in enchantments) { result += " " + enchant.card_id + " Creator: " + enchant.creator_entity_id.ToString() + Environment.NewLine; } return(result); }
public override bool Equals(object obj) { Enchantments rhs = obj as Enchantments; if (rhs == null) { return(false); } return(this.SequenceEqual(rhs)); }