Files
WpfExtended/WpfExtended.SourceGeneration/Templates/Modifiers.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

27 lines
1.1 KiB
C#

namespace System.Extensions.Templates
{
internal sealed class Modifier : AbstractTemplate
{
public static Modifier Readonly { get; } = new Modifier { Value = "readonly" };
public static Modifier Static { get; } = new Modifier { Value = "static" };
public static Modifier Public { get; } = new Modifier { Value = "public" };
public static Modifier Internal { get; } = new Modifier { Value = "internal" };
public static Modifier Private { get; } = new Modifier { Value = "private" };
public static Modifier Abstract { get; } = new Modifier { Value = "abstract" };
public static Modifier Virtual { get; } = new Modifier { Value = "virtual" };
public static Modifier Partial { get; } = new Modifier { Value = "partial" };
public static Modifier Sealed { get; } = new Modifier { Value = "sealed" };
public string Value { get; private set; }
private Modifier()
{
}
public override void Generate(CodeWriter codeWriter)
{
codeWriter.Append(this.Value);
}
}
}