mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-15 14:59:30 +00:00
7d3c2fbb9b
Testing project for source generator
22 lines
521 B
C#
22 lines
521 B
C#
namespace System.Extensions.Templates
|
|
{
|
|
internal sealed class AttributeTemplate : AbstractTemplate
|
|
{
|
|
public string Attribute { get; set; }
|
|
|
|
public AttributeTemplate WithAttribute(string attribute)
|
|
{
|
|
this.Attribute = attribute;
|
|
return this;
|
|
}
|
|
|
|
public override void Generate(CodeWriter codeWriter)
|
|
{
|
|
codeWriter
|
|
.Append('[')
|
|
.Append(this.Attribute)
|
|
.Append(']');
|
|
}
|
|
}
|
|
}
|