在VB.Net类中,我有一个JSON数据作为字符串。我想将它们转换为LINQ类Object。反序列化JSON到LINQ对象
`
'definition
Dim js As New System.Web.Script.Serialization.JavaScriptSerializer
'return the data
Dim rawdata = js.DeserializeObject(strVal)
' i have this object , generated by LINQ
dim oCustomForm= new CustomForm
'what i need is to Deserialize the string INTO that object
'i tried this....but :(
'Dim oCustomForm As List(Of CustomForm) = CType(rawdata, List(Of CustomForm))
'Dim oCustomForm As new CustomForm = rawdata
`
感谢....
结果的形式反序列化是* System.Collections.Generic.List * - >我想将它转换为* oCustomForm * ..这是一个对象的形式* CustomForms *类---- – MuniR 2011-03-24 11:37:32