-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptTemplateAttribute.cs
More file actions
36 lines (28 loc) · 1.07 KB
/
Copy pathScriptTemplateAttribute.cs
File metadata and controls
36 lines (28 loc) · 1.07 KB
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
// Copyright (c) Rotorz Limited. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root.
using System;
namespace ScriptTemplates {
/// <summary>
/// Marks class as script template.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class ScriptTemplateAttribute : Attribute {
/// <summary>
/// Gets description of script template.
/// </summary>
public string Description { get; private set; }
/// <summary>
/// Gets priority of template generator providing control over ordering in user interfaces.
/// </summary>
public int Priority { get; private set; }
/// <summary>
/// Initializes a new <see cref="ScriptTemplateAttribute"/> instance.
/// </summary>
/// <param name="description">Description of script template.</param>
/// <param name="priority">Provides some control over ordering in user interfaces</param>
public ScriptTemplateAttribute(string description, int priority = 1000) {
Description = description;
Priority = priority;
}
}
}