Add support for static properties and methods (#28)

* x

* Add support for static properties and methods.
This commit is contained in:
Stef Heyenrath
2022-02-02 09:01:51 +01:00
committed by GitHub
parent 76d8a2d5a5
commit 307bc1a015
11 changed files with 87 additions and 54 deletions
@@ -1,12 +1,7 @@
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public class Human : Animal
public class Human
{
public bool IsAlive { get; set; }
}
public class Animal
{
public bool X { get; set; }
}
}
@@ -1,6 +1,6 @@
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public partial interface IPerson
public partial interface IPerson : IHuman
{
}
}
@@ -4,6 +4,13 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
{
public class PersonExtends : Human
{
public static string StaticMethod(int x, string y)
{
return "test";
}
public static string StaticString { get; set; } = "500";
public string Name { get; set; }
public string? StringNullable { get; set; }