Skip to content

Commit 143da39

Browse files
committed
Fix issue with Unique mapping source gen
1 parent 627382b commit 143da39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EnumSourceGenerator/EnumGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private static string GeneratePartialHelper(
216216
{
217217
// Generate index-based comparison using sanitized names
218218
var nameToIndexMapping = string.Join(",\n",
219-
enumMembers.Select((name, index) => $" [\"{name}\"] = {index}"));
219+
enumMembers.Select((name, index) => $" {{\"{name}\" , {index}}}"));
220220
structSource = structReadonly
221221
? $@"
222222
public readonly partial record struct {structName}

SimpleInjection/SimpleInjection.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1010
<PackageId>SimpleInjection</PackageId>
11-
<Version>0.9.8</Version>
11+
<Version>0.9.8.1</Version>
1212
<Authors>Derek Gooding</Authors>
1313
<Company>Derek Gooding</Company>
1414
<Description>

0 commit comments

Comments
 (0)