Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 894 Bytes

File metadata and controls

22 lines (15 loc) · 894 Bytes

Net.FracturedCode.Utilities

A repository of handy C# utilities.

Nuget Package

List of features

  1. RangeEnumerator. Use ranges in your foreach loops like foreach (int i in 0..9).
  2. TimeSpan.GetAwaiter. await a TimeSpan.
  3. A GenericBenchmark class for repurposing the test explorer GUI for a benchmark suite.
  4. A TypedFactory<T> class which is effectively a macro of serviceProvider.GetRequiredService<T>(). My primary use case for this is to more easily consume typed HttpClients in Singleton services.
  5. A .WhenAll extension method for Tasks and ValueTasks. Now you can further chain your async LINQ.

Usage

Please reference the unit tests.

TODO

  • NativeAOT compat