using System; using System.Linq; using System.Net.Http; using SiteServer.Plugin; namespace SiteServer.Utils { public static class Extensions { public static bool IsDefault(this T value) where T : struct { return value.Equals(default(T)); } public static string ToCamelCase(this string str) { if (!string.IsNullOrEmpty(str) && str.Length > 1) { return char.ToLowerInvariant(str[0]) + str.Substring(1); } return str; } } }