mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-16 15:29:30 +00:00
7d3c2fbb9b
Testing project for source generator
19 lines
414 B
C#
19 lines
414 B
C#
namespace System.Extensions.Templates
|
|
{
|
|
internal sealed class SimpleCodeTemplate : CodeTemplate
|
|
{
|
|
public string Code { get; set; }
|
|
|
|
public SimpleCodeTemplate WithCode(string code)
|
|
{
|
|
this.Code = code;
|
|
return this;
|
|
}
|
|
|
|
public override void Generate(CodeWriter codeWriter)
|
|
{
|
|
codeWriter.Append(this.Code);
|
|
}
|
|
}
|
|
}
|