Only generate setters and getters for public properties (#47)

* Only generate setters and getters for public properties

* .
This commit is contained in:
Stef Heyenrath
2022-12-13 19:18:30 +01:00
committed by GitHub
parent 72a40e6f6a
commit d340c6af7c
10 changed files with 158 additions and 12 deletions
@@ -0,0 +1,5 @@
namespace ProxyInterfaceSourceGeneratorTests.Source;
public partial interface IMixedVisibility
{
}
@@ -0,0 +1,6 @@
namespace ProxyInterfaceSourceGeneratorTests.Source;
public class MixedVisibility
{
public string Foo { get; protected set; } //<- this will generate bad code
}