private static List<string> GetTypeValue(XElement boardgame, string type) { return (from p in boardgame.Elements("link") where p.Attribute("type").Value == type select p.Attribute("value").Value).ToList(); }