摘要:
public static void TraceLog(string message, string logFileName) { string tmppath = AppDomain.CurrentDomain.BaseDirectory + "\\Log\\"; if (!Directory.Exists(tmppath)) ... 阅读全文
摘要:
private static DateTime BaseTime = new DateTime(1970, 1, 1); 将unixtime转换为.NET的DateTime public static DateTime FromUnixTime(long timeStamp) { return new DateTime((timeStamp)... 阅读全文
摘要:
public static bool StartBy(this string thisValue, params string[] startBy) { foreach (string item in startBy) { if (thisValue.StartsWith(item)) ... 阅读全文