Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyerst committed Mar 7, 2022
2 parents f9d9adc + d54617d commit ac9af80
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ The ultimate fast alternative to `Activator.CreateInstance<T>` / `new T()`

## Features

- A way better CreateInstance
- The best `CreateInstance` ever
- Up to 50x faster than `Activator.CreateInstance<T>`
- Generic Parameters Support
- Non-Public Constructor Support
- Zero boxing/unboxing
- No Generic Constraints
- TryGetValue-like TryFastNew API
- Link Mode PublishTrimmed Support
- Non-Public Constructor Support
- No Generic Constraints
- Compatible with .NET Standard 2.0

- Modern Compiler Integration
- Source Generator v2 (Incremental Generator)
Expand Down Expand Up @@ -63,7 +64,7 @@ var obj = FastNew.CreateInstance<T>();
var obj2 = FastNew.CreateInstance<T, string>("text");
var obj3 = FastNew.CreateInstance<T, string, int>("text", 0);

// Try
// Try
if (FastNew.TryCreateInstance<T, string>("arg0", out T result));
{
// ...
Expand Down

0 comments on commit ac9af80

Please sign in to comment.