mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-21 01:19:29 +00:00
7d3c2fbb9b
Testing project for source generator
20 lines
484 B
C#
20 lines
484 B
C#
namespace System.Extensions.Templates
|
|
{
|
|
internal sealed class NamespaceTemplate : AbstractTemplate
|
|
{
|
|
public string Namespace { get; set; }
|
|
public NamespaceTemplate WithNamespace(string n)
|
|
{
|
|
this.Namespace = n;
|
|
return this;
|
|
}
|
|
|
|
public override void Generate(CodeWriter codeWriter)
|
|
{
|
|
codeWriter
|
|
.Append("namespace ")
|
|
.Append(this.Namespace);
|
|
}
|
|
}
|
|
}
|