mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed New Class generator with empty namespace
This commit is contained in:
parent
dbfdbdf98a
commit
a5b032cc39
1 changed files with 4 additions and 2 deletions
|
@ -225,10 +225,12 @@ namespace System
|
|||
if (name.EndsWith(".bf", .OrdinalIgnoreCase))
|
||||
name.RemoveFromEnd(3);
|
||||
outFileName.Append(name);
|
||||
|
||||
var ns = Namespace..Trim();
|
||||
if (!ns.IsEmpty)
|
||||
outText.AppendF($"namespace {Namespace};\n\n");
|
||||
outText.AppendF(
|
||||
$"""
|
||||
namespace {Namespace};
|
||||
|
||||
class {name}
|
||||
{{
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue