En classe VB.Net, j'ai une donnée JSON en tant que chaîne. Je veux les convertir en objet de classe LINQ.Désérialise JSON en objet 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
`
Merci ....
le formulaire résultat Désérialise * System.Collections.Generic.List * -> je veux convertir en * oCustomForm * ..which est une forme d'objet * CustomForms * classe ---- – MuniR