Various tools for collections, DateTime, Luhn, Compare and Assembly.


Keywords
License
MIT
Install
Install-Package Tharga.Toolkit -Version 1.6.111

Documentation

Tharga Toolkit

Contains a .NET version and a Standard version.

GitHub repo Issues

.NET

NuGet Nuget License

Features

  • All features from the standard package
  • Assembly and TypeService Service

Standard

NuGet Nuget License

Features

  • Compare
  • ManagedTimer
  • DateTimeExtensions
  • ListExtensions
  • HashExtensions
  • EnumExtensions
  • Enumeration
  • Luhn

Assembly and TypeService Service

Register the service

public void ConfigureServices(IServiceCollection services)
{
	services.AddAssemblyService();
}

When GetTypes is called the first time, data is stored in cache. All other calls will use that cache.

assemblyService.GetTypes("CacheKey", x => x.IsOfType(typeof([SomeType]), false) && !x.IsAbstract);

Preload cache by calling LoadTypes.

assemblyService.LoadTypes("CacheKey", x => x.IsOfType(typeof([SomeType]), false) && !x.IsAbstract);

Test Toolkit

NuGet Nuget License

Features

  • AssignmentExtension
  • DependencyTest