What is the best way to set username and password in C #?
I need them to pass the DirectoryContext class call.
I need something like Get-Credential in Powershell to store the username and password in a variable.
Googling for him. I found an interesting class for this job, but in framework 4.0 there is no built-in class (for example: var cred = new credentialDialog() ?
Strong security is optional, you just need to hide the password field.
Thank you all
source share