/// <summary> /// 导出数据 /// </summary> /// <returns></returns> public static string Export() { var res = new DataModel(); res.devName = DeviceName.GetDeviceName(); res.devType = DeviceType.GetDeviceType(); res.whiteList = WhiteList.GetWhiteList(); return(JsonConvert.SerializeObject(res)); }