Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public class GetJsonList
  2. {
  3. public string dato1{ get; set; }
  4. public string dato2 { get; set; }
  5. public string dato3 { get; set; }
  6. }
  7. public class RootListObject
  8. {
  9. public string resultado { get; set; }
  10. public string mensaje { get; set; }
  11. public GetJsonList datos { get; set; }//aqui me marca el error cuando esta en la carpeta llamada Clases.
  12.  
  13. }
  14.  
  15. var msjdes = JsonConvert.DeserializeObject<RootListObject>(miJsonFormat);
  16.  
  17. text1.Text = msjdes.datos.Dato1;
  18. text2.Text = msjdes.datos.Dato2;
  19. text3.Text = msjdes.datos.Dato3;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement