-
Notifications
You must be signed in to change notification settings - Fork 0
/
CodeGenClassAttribute.cs
39 lines (33 loc) · 1.13 KB
/
CodeGenClassAttribute.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/OnRamp
using System;
namespace OnRamp.Config
{
/// <summary>
/// Represents the <i>code-generation</i> class configuration.
/// </summary>
/// <param name="name">The class name.</param>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class CodeGenClassAttribute(string name) : Attribute
{
/// <summary>
/// Gets the class name.
/// </summary>
public string Name { get; } = name ?? throw new ArgumentNullException(nameof(name));
/// <summary>
/// Gets or sets the title.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the description.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Gets or sets the markdown.
/// </summary>
public string? Markdown { get; set; }
/// <summary>
/// Gets or sets the example markdown.
/// </summary>
public string? ExampleMarkdown { get; set; }
}
}