StefH/ProxyInterfaceSourceGenerator
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 Dependency Injection.
C#MIT
Issues
- 0
output filename clash in case with multiple interfaces with same name but different namespace
#69 opened by StefH - 0
warning CS0109: The member '***._Instance' does not hide an accessible member. The new keyword is not required.
#71 opened by StefH - 0
no support for inner class
#7 opened by StefH - 1
- 2
- 4
Parameters passed in with Keyword "ref" are proxied such that they are no longer updated by reference
#60 opened by FatSwords - 2
- 4
Internal proxies/Proxy factory
#56 opened by FatSwords - 4
2D arrays as inputs to a method generate interfaces with incorrect asterisks in their array definitions
#54 opened by FatSwords - 3
Proxied array return types are left as is, and do not return their proxied type
#52 opened by FatSwords - 3
Proxy does only proxy top level members
#43 opened by rogeralsing - 1
Proxy interfaces should work?
#45 opened by rogeralsing - 11
v0.0.3 feedback
#2 opened by beakona - 1
Build error on mixed visibility properties
#44 opened by rogeralsing - 1
Build error on missing namespace
#42 opened by rogeralsing - 10
- 1
no support for indexers
#13 opened by StefH - 1
generated code is not valid when there is no namespace (foreign class is in root scope)
#5 opened by StefH - 1
for projects where #nullable is disabled emitting nullable reftype without preprocessor '#nullable enable' would result in compile time error.
#14 opened by StefH - 0
- 1
- 1
no support for generics
#6 opened by StefH - 1
- 1
Support verbatim / reserved names like @object
#9 opened by StefH - 1
"ref" and "out" are not being forwarded correctly
#10 opened by StefH - 1
"params" keyword is not emitted
#12 opened by StefH - 0
mapper is used for `string?` / there is a case where _mapper is used but not assigned
#4 opened by StefH