Skip to content

Commit

Permalink
add IsCanConvert Method
Browse files Browse the repository at this point in the history
  • Loading branch information
xucl authored and xucl committed Jun 23, 2016
1 parent bc3ec92 commit 0793d07
Show file tree
Hide file tree
Showing 25 changed files with 13 additions and 12 deletions.
Binary file modified TestWeb/bin/TestWeb.dll
Binary file not shown.
Binary file modified TestWeb/bin/TestWeb.pdb
Binary file not shown.
Binary file modified TestWeb/bin/XCLNetTools.dll
Binary file not shown.
Binary file modified TestWeb/bin/XCLNetTools.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions TestWeb/bin/XCLNetTools.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified TestWeb/obj/Debug/TestWeb.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified TestWeb/obj/Debug/TestWeb.dll
Binary file not shown.
Binary file modified TestWeb/obj/Debug/TestWeb.pdb
Binary file not shown.
Binary file modified TestWeb/obj/Release/TestWeb.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified TestWeb/obj/Release/TestWeb.dll
Binary file not shown.
Binary file modified TestWeb/obj/Release/TestWeb.pdb
Binary file not shown.
Binary file modified XCLNetTools.v12.suo
Binary file not shown.
6 changes: 3 additions & 3 deletions XCLNetTools/StringHander/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -549,12 +549,12 @@ public static bool IsAjax()
}

/// <summary>
/// 判断指定值是否为指定的类型
/// 判断指定值是否可以转换为指定的类型
/// </summary>
/// <typeparam name="T">是否为此类型</typeparam>
/// <typeparam name="T">是否可以转换为此类型</typeparam>
/// <param name="val">需要判断的值</param>
/// <returns>判断结果</returns>
public static bool Is<T>(string val)
public static bool IsCanConvert<T>(object val)
{
var converter = TypeDescriptor.GetConverter(typeof(T));
return converter.IsValid(val);
Expand Down
Binary file modified XCLNetTools/bin/Debug/XCLNetTools.dll
Binary file not shown.
Binary file modified XCLNetTools/bin/Debug/XCLNetTools.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions XCLNetTools/bin/Debug/XCLNetTools.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified XCLNetTools/bin/Release/XCLNetTools.dll
Binary file not shown.
Binary file modified XCLNetTools/bin/Release/XCLNetTools.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions XCLNetTools/bin/Release/XCLNetTools.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified XCLNetTools/obj/Debug/XCLNetTools.dll
Binary file not shown.
Binary file modified XCLNetTools/obj/Debug/XCLNetTools.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ E:\GitHub\XCLNetTools\XCLNetTools\bin\Release\en\AspNetPager.resources.dll
E:\GitHub\XCLNetTools\XCLNetTools\bin\Release\zh-CHT\AspNetPager.resources.dll
E:\GitHub\XCLNetTools\XCLNetTools\obj\Release\XCLNetTools.dll
E:\GitHub\XCLNetTools\XCLNetTools\obj\Release\XCLNetTools.pdb
E:\GitHub\XCLNetTools\XCLNetTools\obj\Release\XCLNetTools.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified XCLNetTools/obj/Release/XCLNetTools.dll
Binary file not shown.
Binary file modified XCLNetTools/obj/Release/XCLNetTools.pdb
Binary file not shown.

0 comments on commit 0793d07

Please sign in to comment.