Felsökning.Collections.Generic 1.0.0

An assembly that contains collections that are protected by the .NET Core Data Protector.

Install-Package Felsökning.Collections.Generic -Version 1.0.0
dotnet add package Felsökning.Collections.Generic --version 1.0.0
<PackageReference Include="Felsökning.Collections.Generic" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Felsökning.Collections.Generic --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Single class is exposed, ProtectedList, which uses DataProtector to encrypt the contents. The decrypted contents are only available through Action<string> or Predicate<string> calls.

using (ProtectedList protectedList = new ProtectedList { "something", "nothing", "more stuff" })
{
     protectedList.Add(item: "Some more testing....");
     protectedList.ForEach(s =>
     {
          Console.WriteLine(value: s);
     });

     string foundItem = protectedList.Find(x => x.Contains(value: "something"));
     List<string> foundItems = protectedList.FindAll(y => y.Contains("g"));
     bool wasFound = protectedList.Contains(value: "Some more testing....");
}

Single class is exposed, ProtectedList, which uses DataProtector to encrypt the contents. The decrypted contents are only available through Action<string> or Predicate<string> calls.

using (ProtectedList protectedList = new ProtectedList { "something", "nothing", "more stuff" })
{
     protectedList.Add(item: "Some more testing....");
     protectedList.ForEach(s =>
     {
          Console.WriteLine(value: s);
     });

     string foundItem = protectedList.Find(x => x.Contains(value: "something"));
     List<string> foundItems = protectedList.FindAll(y => y.Contains("g"));
     bool wasFound = protectedList.Contains(value: "Some more testing....");
}

Release Notes

Initial release.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 76 1/27/2020