Skip to content

Commit f4f1579

Browse files
v5.2.3
1 parent 64718de commit f4f1579

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

AutomaticInterface/AutomaticInterface/AutomaticInterface.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2525
<EnableNETAnalyzers>True</EnableNETAnalyzers>
2626
<AnalysisLevel>latest-Recommended</AnalysisLevel>
27-
<Version>5.2.2</Version>
27+
<Version>5.2.3</Version>
2828
<PackageReadmeFile>README.md</PackageReadmeFile>
2929
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3030
<NoWarn>1701;1702;NU5128</NoWarn>

AutomaticInterface/AutomaticInterface/RegisterAttributesExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ internal sealed class {{AutomaticInterfaceGenerator.DefaultAttributeName}}Attrib
3636
/// <param name="namespaceName">Namespace name for the generated interface. Defaults to the same namespace as the class.</param>
3737
/// <param name="interfaceName">Interface name for the generated interface. Defaults to an interface version of the class name, e.g ExampleClass -> IExampleClass.</param>
3838
/// <param name="asInternal">If true, the generated interface will be internal, otherwise public</param>
39-
internal {{AutomaticInterfaceGenerator.DefaultAttributeName}}Attribute(string? {{AutomaticInterfaceGenerator.NamespaceParameterName}} = default(string), string? {{AutomaticInterfaceGenerator.InterfaceParameterName}} = default(string), bool {{{AutomaticInterfaceGenerator.AsInternalParameterName}}} = false) { }
39+
internal {{AutomaticInterfaceGenerator.DefaultAttributeName}}Attribute(string {{AutomaticInterfaceGenerator.NamespaceParameterName}} = default(string), string {{AutomaticInterfaceGenerator.InterfaceParameterName}} = default(string), bool {{AutomaticInterfaceGenerator.AsInternalParameterName}} = false) { }
4040
}
4141
}
4242
""",

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ Note that we use [Verify](https://github.com/VerifyTests/Verify) for testing. It
188188

189189
## Changelog
190190

191+
### 5.2.3
192+
193+
- Refactor 'asInternal' logic to remove duplicate attribute lookup. Thanks ChaseFlorell!
194+
191195
### 5.2.2
192196

193197
- Smaller fixes to the Docstrings - warnings about missing xml comments should be fixed

0 commit comments

Comments
 (0)