You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PackageReadme.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,15 @@
1
-
# Usage
1
+
## ProxyInterfaceGenerator
2
+
This project uses Source Generation to generate an interface and a Proxy class for classes.
3
+
This makes it possible to wrap external classes which do not have an interface, in a Proxy class which makes it easier to Mock and use DI.
4
+
5
+
It supports:
6
+
- properties
7
+
- methods
8
+
- events
9
+
- implicit and explicit operators
10
+
11
+
12
+
### Info
2
13
3
14
**Given: an external existing class which does not implement an interface**
4
15
```c#
@@ -60,9 +71,18 @@ public class PersonProxy : IPerson
60
71
}
61
72
```
62
73
63
-
## Use it
74
+
###Use it
64
75
```c#
65
76
IPersonp=newPersonProxy(newPerson());
66
77
p.Name="test";
67
78
p.HelloWorld("stef");
68
-
```
79
+
```
80
+
81
+
82
+
### Sponsors
83
+
84
+
[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=StefH) and [Dapper Plus](https://dapper-plus.net/?utm_source=StefH) are major sponsors and proud to contribute to the development of **ProxyInterfaceSourceGenerator**.
[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=StefH) and [Dapper Plus](https://dapper-plus.net/?utm_source=StefH) are major sponsors and proud to contribute to the development of **ProxyInterfaceSourceGenerator**.
0 commit comments