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