Skip to content

Commit ba7738c

Browse files
committed
Update README.md
1 parent 5759e62 commit ba7738c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ public class FactoryService : IFactoryService
130130
public class OpenGeneric<T> : IOpenGeneric<T> { }
131131
```
132132

133+
In version 5.0+, self-registration of open-generic types supported
134+
135+
```c#
136+
[RegisterSingleton]
137+
public class OpenGeneric<T> : IOpenGeneric<T> { }
138+
```
139+
140+
133141
#### Generic Attributes
134142

135143
You can use generic attributes to register services if your project targets .NET 7.0+

0 commit comments

Comments
 (0)