flashkid10
Member
- Joined
- Dec 9, 2016
- Messages
- 16
- Programming Experience
- Beginner
I currently have a system in a which I store an image to a byte[] (cover) in a class instance. I'm trying to extract a byte[] from the class instance, but I don't know how to do that.
the code I'm using is
the code I'm using is
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();