Deserializing xml to object with dictionary

前端 未结 5 1027

This is my class structure:

class DataItem
{
   public string Id { get; set; }
   public string Type { get; set; }

   private Dictionary

        
5条回答
  •  不要未来只要你来
    2021-01-25 19:03

    You can't but another way to do this would be to create an simple object which hold Value and Key properties. Then use List(Of thatObject) and it should work. But that depend if you only want to transport a value key data cause all others methods which is part of dictionary won't be available.

提交回复
热议问题