We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11069ee commit a186906Copy full SHA for a186906
src/CSharpTypePrinter/CSharpTypePrinter.cs
@@ -86,7 +86,7 @@ public static string ToCSharpCode(this Type type,
86
87
var typeArgsConsumedByParentsCount = 0;
88
var s = new StringBuilder();
89
- if (!stripNamespace)
+ if (!stripNamespace && !string.IsNullOrEmpty(type.Namespace)) // for the auto-generated classes Namespace may be empty and in general it may be empty
90
s.Append(type.Namespace).Append('.');
91
92
if (parentTypes != null)
0 commit comments