File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ The ultimate fast alternative to `Activator.CreateInstance<T>` / `new T()`
4
4
5
5
## Features
6
6
7
- - A way better CreateInstance
7
+ - The best ` CreateInstance ` ever
8
8
- Up to 50x faster than ` Activator.CreateInstance<T> `
9
9
- Generic Parameters Support
10
- - Non-Public Constructor Support
11
10
- Zero boxing/unboxing
12
- - No Generic Constraints
13
11
- TryGetValue-like TryFastNew API
14
12
- Link Mode PublishTrimmed Support
13
+ - Non-Public Constructor Support
14
+ - No Generic Constraints
15
+ - Compatible with .NET Standard 2.0
15
16
16
17
- Modern Compiler Integration
17
18
- Source Generator v2 (Incremental Generator)
@@ -63,7 +64,7 @@ var obj = FastNew.CreateInstance<T>();
63
64
var obj2 = FastNew .CreateInstance <T , string >(" text" );
64
65
var obj3 = FastNew .CreateInstance <T , string , int >(" text" , 0 );
65
66
66
- // Try
67
+ // Try
67
68
if (FastNew .TryCreateInstance <T , string >(" arg0" , out T result ));
68
69
{
69
70
// ...
You can’t perform that action at this time.
0 commit comments