Skip to content

A collection of custom C# utitilites by FracturedCode

License

Notifications You must be signed in to change notification settings

FracturedCode/Net.FracturedCode.Utilities

Repository files navigation

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

About

A collection of custom C# utitilites by FracturedCode

Resources

License

Stars

Watchers

Forks

Packages

No packages published