diff --git a/InterfaceStubGenerator.Shared/Parser.cs b/InterfaceStubGenerator.Shared/Parser.cs index b1315ab77..a603d7a6f 100644 --- a/InterfaceStubGenerator.Shared/Parser.cs +++ b/InterfaceStubGenerator.Shared/Parser.cs @@ -265,7 +265,7 @@ bool nullableEnabled } // Remove dots - ns = ns!.Replace(".", "").Replace('-', '_'); + ns = ns!.Replace(".", ""); var interfaceDisplayName = interfaceSymbol.ToDisplayString( SymbolDisplayFormat.FullyQualifiedFormat ); diff --git a/Refit/UniqueName.cs b/Refit/UniqueName.cs index fafb23acc..0fc7e85f9 100644 --- a/Refit/UniqueName.cs +++ b/Refit/UniqueName.cs @@ -39,7 +39,7 @@ public static string ForType(Type refitInterfaceType) interfaceTypeName = interfaceTypeName.Replace("+", ""); // Get the namespace and remove the dots - var ns = refitInterfaceType.Namespace?.Replace(".", "").Replace("-", "_"); + var ns = refitInterfaceType.Namespace?.Replace(".", ""); // Refit types will be generated as private classes within a Generated type in namespace // Refit.Implementation