The name 'ProtectedData' does not exist in the current context
Using the .net ProtectedData.Protect method is great way to secure in memory data.
However if it isn't obvious and you try to compile but receive this message
The name 'ProtectedData' does not exist in the current context, and The name 'DataProtectionScope' does not exist in the current context
The fix is you need to manually add the System.Security as a reference.
Written by Mike Olsen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#.net
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#