msg_base.cs 450 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7. using Newtonsoft.Json;
  8. namespace HXX.Scanner.Biz.Socket
  9. {
  10. public class msg_base
  11. {
  12. /// <summary>
  13. /// 获取实体的json
  14. /// </summary>
  15. /// <returns></returns>
  16. public string ToJson()
  17. {
  18. return JsonConvert.SerializeObject(this);
  19. }
  20. }
  21. }