如何创建此对象以与Service.Put / Post Json一起使用

时间:2016-04-27 02:04:35

标签: json vb.net codeigniter object

我正在使用Vb.net的Json和Post Method进行一些尝试

我使用Keys

创建一个body对象

昏暗的身体作为对象

body = New With {
            Key .title = tittle,
            Key .price = price,
            how can i put and if here?
            if 1 > 2 then
            key .test = 1000
            end if
            }

我需要创建一个主体,或者将两个主体合二为一:

body = New With {
            Key .title = tittle,
            Key .price = price,
            }

body1 = new with { 
            key .test = 1000
             }

bodyFinall = body + body

或类似的东西。有可能吗? 非常感谢

0 个答案:

没有答案