BoardGameGeekApiClient.Helpers.BoardGameGeekApiClientHelper.GetMechanics C# (CSharp) 메소드

GetMechanics() 공개 정적인 메소드

public static GetMechanics ( this boardgame ) : List
boardgame this
리턴 List
        public static List<GameMechanic> GetMechanics(this XElement boardgame)
        {
            return (from p in boardgame.Elements("link")
                    where p.Attribute("type").Value == "boardgamemechanic"
                    select new GameMechanic
                    {
                        Mechanic = p.Attribute("value").Value,
                        Id = int.Parse(p.Attribute("id").Value)
                    }).ToList();
        }
        public static List<GameCategory> GetCategories(this XElement boardgame)