摘要: public sealed class PasswordEngine{ private static PasswordEngine engine = new PasswordEngine(); public static PasswordEngine Default { get { return engine; } } private readonly Random rnd = new Random(); private string[] allowedCharacters =... 阅读全文
posted @ 2013-06-08 10:25 李占卫 阅读(502) 评论(0) 推荐(0) 编辑
摘要: public class ObjectWriter{ public static string GetObjectString(object obj) { StringBuilder sb = new StringBuilder(1024); sb.Append("Type: "); sb.AppendLine(obj.GetType().ToString()); if (obj == null) { sb.AppendLine("Value: Null"); } ... 阅读全文
posted @ 2013-06-08 10:23 李占卫 阅读(321) 评论(0) 推荐(0) 编辑
摘要: namespace Utilities.General{ public static class Utility { public static bool RestartAppPool() { //First try killing your worker process try { //Get the current process Process process = Process.GetCurrentProcess(); ... 阅读全文
posted @ 2013-06-08 10:14 李占卫 阅读(549) 评论(0) 推荐(0) 编辑