// Protect string content by marshalling
IntPtr bstr = Marshal.SecureStringToBSTR(password);
try
{
// ...
// use the bstr
// ...
}
finally
{
Marshal.ZeroFreeBSTR(bstr);
}
String In Csharp
Saturday, May 30, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment