Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. /*
  2. * Valentin CHAILLOU 4A - AL2
  3. * JSon To CSV parser
  4. * 29/06/2016
  5. */
  6. using System;
  7.  
  8. namespace ConsoleTest
  9. {
  10. public class MyJsonLine
  11. {
  12. public int code;
  13. public string host;
  14. public string path;
  15. public int durationMS;
  16.  
  17. override public string ToString() {
  18. return code + " " + host + " " + " " + path + " " + durationMS;
  19. }
  20.  
  21. public string ToCsv() {
  22. return host + "," + path + "," + code + "," + durationMS;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement