Skip to content

Commit ac9af80

Browse files
author
Nyerst
committed
2 parents f9d9adc + d54617d commit ac9af80

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ The ultimate fast alternative to `Activator.CreateInstance<T>` / `new T()`
44

55
## Features
66

7-
- A way better CreateInstance
7+
- The best `CreateInstance` ever
88
- Up to 50x faster than `Activator.CreateInstance<T>`
99
- Generic Parameters Support
10-
- Non-Public Constructor Support
1110
- Zero boxing/unboxing
12-
- No Generic Constraints
1311
- TryGetValue-like TryFastNew API
1412
- Link Mode PublishTrimmed Support
13+
- Non-Public Constructor Support
14+
- No Generic Constraints
15+
- Compatible with .NET Standard 2.0
1516

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

66-
// Try
67+
// Try
6768
if (FastNew.TryCreateInstance<T, string>("arg0", out T result));
6869
{
6970
// ...

0 commit comments

Comments
 (0)