Files
WpfExtended/WpfExtended.SourceGeneration/Templates/AttributeTemplate.cs
T
Alexandru Macocian 7d3c2fbb9b Alpha implementation of dependency property source generator.
Testing project for source generator
2021-04-06 10:40:06 +02:00

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(']');
}
}
}