DBUtility/HJConvert.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace WMPT.DBUtility
{
public static class HJConvert
{
public static string ToString(object obj)
{
if (Convert.IsDBNull(obj) || obj == null)
{
return string.Empty;
}
else
{
return Convert.ToString(obj);
}
}
public static Int32 ToInt32(object obj)
{
if (Convert.IsDBNull(obj) || obj == null)
{
return 0;
}
else
{
return Convert.ToInt32(obj);
}
}
public static Int32? ToNullInt32(object obj)
{
if (Convert.IsDBNull(obj) || obj == null)
{
return null;
}
else
{
return Convert.ToInt32(obj);
}
}
public static Int64 ToInt64(object obj)
{
if (Convert.IsDBNull(obj) || obj == null)
{
return 0;
}
else
{
return Convert.ToInt64(obj);
}
}
public static Decimal ToDecimal(object obj)
{
后面还有 358 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
