Create secure string easily in tests (i.e. for a password for Process.Start)
SecureString pwd = new SecureString(); foreach(char c in "Pass@word1") { pwd.AppendChar(c); } Process.Start("notepad", "Administrator", pwd, Environment.MachineName);
SecureString pwd = new SecureString(); foreach(char c in "Pass@word1") { pwd.AppendChar(c); } Process.Start("notepad", "Administrator", pwd, Environment.MachineName);
Comments have been disabled for this content.