diff --git a/ReleaseNotes.md b/ReleaseNotes.md index f086413..f8aeda4 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,6 +1,8 @@ # 0.0.5 (31 July 2021) - [#18](https://github.com/StefH/ProxyInterfaceSourceGenerator/pull/18) - Add support for reserved keywords like @object and @string [enhancement] contributed by [StefH](https://github.com/StefH) +- [#19](https://github.com/StefH/ProxyInterfaceSourceGenerator/pull/19) - Fix Default value [enhancement] contributed by [StefH](https://github.com/StefH) - [#9](https://github.com/StefH/ProxyInterfaceSourceGenerator/issues/9) - Support verbatim / reserved names like @object [bug] +- [#11](https://github.com/StefH/ProxyInterfaceSourceGenerator/issues/11) - interface methods do not propagate default value for parameters [bug] # 0.0.4 (28 July 2021) - [#15](https://github.com/StefH/ProxyInterfaceSourceGenerator/pull/15) - Fix issue #4 (string?) [bug] contributed by [StefH](https://github.com/StefH) diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs index 5ae651a..f70d78e 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs @@ -130,15 +130,6 @@ namespace {ns} foreach (var ps in method.Parameters) { var type = GetParameterType(ps, out _); - //if (ps.GetTypeEnum() == TypeEnum.Complex) - //{ - // var type = GetParameterType(ps, out _); - // methodParameters.Add($"{ps.GetParamsPrefix()}{ps.GetRefPrefix()}{type} {ps.GetSanitizedName()}{ps.GetDefaultValue()}"); - //} - //else - //{ - // methodParameters.Add($"{ps.GetParamsPrefix()}{ps.GetRefPrefix()}{ps.Type} {ps.GetSanitizedName()}{ps.GetDefaultValue()}"); - //} methodParameters.Add($"{ps.GetParamsPrefix()}{ps.GetRefPrefix()}{type} {ps.GetSanitizedName()}{ps.GetDefaultValue()}"); invokeParameters.Add($"{ps.GetRefPrefix()}{ps.GetSanitizedName()}_");