flashkid10
成员
- 已加入
- 2016年12月9日
- 留言内容
- 16
- 编程经验
- Beginner
我目前有一个系统,可以将图像存储到类实例中的byte [](封面)上。我正在尝试从类实例中提取一个byte [],但我不知道该怎么做。
我正在使用的代码是
我正在使用的代码是
List<Item> information; information = (from e in XDocument.Load("AniListData.xml").Root.Elements("Item") select new Item { Name = (string)e.Element("Name"), Age = (int)e.Element("Age"), Cover = // What do i put here to extract the byte[] }).ToList();