Skip to content

Commit

Permalink
No dashes in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Jan 15, 2024
1 parent bb6d54e commit 5a4cd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lamar/IoC/Instances/Instance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public string DefaultArgName()
argName += "_of_" + ServiceType.GetGenericArguments().Select(t => t.NameInCode().Sanitize()).Join("_");
}

return IsOnlyOneOfServiceType ? argName : argName + HashCode(ServiceType, Name).ToString().Replace("-", "_");
return IsOnlyOneOfServiceType ? argName : argName + Math.Abs(HashCode(ServiceType, Name)).ToString().Replace("-", "_");
}

internal IEnumerable<Assembly> ReferencedAssemblies()
Expand Down

0 comments on commit 5a4cd7c

Please sign in to comment.