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

GetCategories() 공개 정적인 메소드

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