diff --git a/PackageReadme.md b/PackageReadme.md index 0d61f17..fafe30a 100644 --- a/PackageReadme.md +++ b/PackageReadme.md @@ -1,4 +1,15 @@ -# Usage +## ProxyInterfaceGenerator +This project uses Source Generation to generate an interface and a Proxy class for classes. +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. + +It supports: +- properties +- methods +- events +- implicit and explicit operators + + +### Info **Given: an external existing class which does not implement an interface** ``` c# @@ -60,9 +71,18 @@ public class PersonProxy : IPerson } ``` -## Use it +### Use it ``` c# IPerson p = new PersonProxy(new Person()); p.Name = "test"; p.HelloWorld("stef"); -``` \ No newline at end of file +``` + + +### Sponsors + +[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://raw.githubusercontent.com/StefH/resources/main/sponsor/entity-framework-extensions-sponsor.png)](https://entityframework-extensions.net/bulk-insert?utm_source=StefH) + +[![Dapper Plus](https://raw.githubusercontent.com/StefH/resources/main/sponsor/dapper-plus-sponsor.png)](https://dapper-plus.net/bulk-insert?utm_source=StefH) \ No newline at end of file diff --git a/README.md b/README.md index 459ddd1..d325c04 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ProxyInterfaceGenerator +# ![icon](./resources/icon_32x32.png) ProxyInterfaceGenerator This project uses Source Generation to generate an interface and a Proxy class for classes. 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. @@ -8,7 +8,7 @@ It supports: - events - implicit and explicit operators -## NuGet +## 📦 NuGet [![NuGet Badge](https://img.shields.io/nuget/v/ProxyInterfaceGenerator)](https://www.nuget.org/packages/ProxyInterfaceGenerator) ## Usage @@ -136,5 +136,14 @@ public partial interface IAddress } ``` -# References +## 📚 References - https://route2roslyn.netlify.app/symbols-for-dummies/ + + +## Sponsors + +[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://raw.githubusercontent.com/StefH/resources/main/sponsor/entity-framework-extensions-sponsor.png)](https://entityframework-extensions.net/bulk-insert?utm_source=StefH) + +[![Dapper Plus](https://raw.githubusercontent.com/StefH/resources/main/sponsor/dapper-plus-sponsor.png)](https://dapper-plus.net/bulk-insert?utm_source=StefH) \ No newline at end of file diff --git a/resources/icon_32x32.png b/resources/icon_32x32.png new file mode 100644 index 0000000..1913519 Binary files /dev/null and b/resources/icon_32x32.png differ diff --git a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj index 8525845..5b6da34 100644 --- a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj +++ b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj @@ -1,7 +1,7 @@ - 0.9.0 + 0.9.0.1 netstandard2.0 {12344228-91F4-4502-9595-39584E5ABB34} latest