-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
214 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Free Control 更新记录 | ||
|
||
## v1.6.9 | ||
- 修复了一些bug | ||
- 优化了代码 | ||
|
||
## v1.6.8 | ||
- 修复了一些bug | ||
- 移除自动切换输入法功能 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
//using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Web.Script.Serialization; | ||
using System.Web.Script.Serialization; | ||
|
||
namespace FreeControl.Utils | ||
{ | ||
public class JsonHelper | ||
{ | ||
/// <summary> | ||
/// json反序列化 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
public static T jsonDes<T>(string input) | ||
/// <summary> | ||
/// Json字符串转对象 | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
public static T Str2Obj<T>(string input) | ||
{ | ||
//return JsonConvert.DeserializeObject<T>(input); | ||
JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer(); | ||
return javaScriptSerializer.Deserialize<T>(input); | ||
return new JavaScriptSerializer().Deserialize<T>(input); | ||
} | ||
public static string json(object obj) | ||
|
||
/// <summary> | ||
/// 对象转Json字符串 | ||
/// </summary> | ||
/// <param name="obj"></param> | ||
/// <returns></returns> | ||
public static string Obj2Str(object obj) | ||
{ | ||
//return JsonConvert.SerializeObject(obj, Formatting.Indented); | ||
JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer(); | ||
return javaScriptSerializer.Serialize(obj); | ||
return new JavaScriptSerializer().Serialize(obj); | ||
} | ||
} | ||
} |
Oops, something went wrong.