You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
565 B

using System;
using System.Linq;
using System.Net.Http;
using SiteServer.Plugin;
namespace SiteServer.Utils
{
public static class Extensions
{
public static bool IsDefault<T>(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;
}
}
}