App_Code/Common.cs
(完整代码) 875Busing System;
public static class CommonUtil
{
public static string ToFirstUper(this string text)
{
if (text == null)
{
return "";
}
return text.Substring(0, 1).ToUpper() + text.Substring(1);
}
public static string ToFirstLower(this string text)
{
if (text == null)
{
return "";
}
return text.Substring(0, 1).ToLower() + text.Substring(1);
}
public static bool IsNullOrEmpty(this string text)
{
return string.IsNullOrEmpty(text);
}
public static string NoSpace(this string val)
{
if (val == null)
{
return val;
}
return val.Replace(" ", "");
}
public static string GetTableClassName(this string text)
{
return text.ToLower().ToFirstUper().Replace("_", "");
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。