且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将json数组反序列化为vb .NET对象异常-由于类型需要数组,因此无法序列化为

更新时间:2022-01-08 07:59:56

如果您在Visual Studio中使用粘贴为JSON"功能,则不能正确定义数组属性.

If you are using the Paste as JSON feature in Visual Studio, it does not define array properties correctly.

Private Class lobbActivity
    Public Property billNum_List As String()
    Public Property ruleOrReg_List As String()
    Public Property ratemaking_List As String()
    Public Property PcontrNum_List As String()
    Public Property Ptitle_List As String()
    Public Property MuniOrd_List As String()
    Public Property MuniRed_List As String()
    Public Property ExOrders_List As String()
    Public Property TribeSub_List As String()
    Public Property Tribes_List As String()
End Class