deserializing enums

前端 未结 5 1265
轻奢々
轻奢々 2020-12-06 10:20

I have an xml in which one of the elements has an attribute that can be blank. For e.g.,



.....

         


        
5条回答
  •  难免孤独
    2020-12-06 10:40

    What would you want the result to be ?

    A blank value cannot be mapped to a null reference since an enum is a non-nullable value type.

提交回复
热议问题