Skip to content

Commit

Permalink
Fix proxy class type name violation on code-gen (#8785)
Browse files Browse the repository at this point in the history
* fixed

* apparently there is a method which does this, so switched to it for code reusing

* removed test proj

* removing unused usings

* some more usings removed

---------

Co-authored-by: Ledjon Behluli <[email protected]>
  • Loading branch information
ledjon-behluli and Ledjon Behluli authored Dec 18, 2023
1 parent 4c2d898 commit 2bcd833
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Orleans.CodeGenerator/ProxyGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ public ProxyGenerator(CodeGenerator codeGenerator)
return (classDeclaration, new GeneratedProxyDescription(interfaceDescription, generatedClassName));
}

public static string GetSimpleClassName(ProxyInterfaceDescription interfaceDescription) => $"Proxy_{interfaceDescription.Name}";

public static string GetSimpleClassName(ProxyInterfaceDescription interfaceDescription)
=> $"Proxy_{SyntaxGeneration.Identifier.SanitizeIdentifierName(interfaceDescription.Name)}";

private List<GeneratedFieldDescription> GetFieldDescriptions(
ProxyInterfaceDescription interfaceDescription)
{
Expand Down

0 comments on commit 2bcd833

Please sign in to comment.