摘要:
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 =... 阅读全文
摘要:
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"); } ... 阅读全文
摘要:
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(); ... 阅读全文