-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathUserTypeAttribute.cs
29 lines (26 loc) · 1.13 KB
/
UserTypeAttribute.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
using System;
namespace SharpDebug
{
/// <summary>
/// Attribute that gives more info for user defined types in scripts.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class UserTypeAttribute : Attribute
{
/// <summary>
/// Gets or sets the name of the module.
/// Note: it can be null, then all modules will be scanned and if multiple modules have same type, exception will be thrown.
/// </summary>
public string ModuleName { get; set; }
/// <summary>
/// Gets or sets the name of the type.
/// Note: it can be null, then class name where this attribute was set would be used.
/// </summary>
public string TypeName { get; set; }
/// <summary>
/// Gets or sets name of the function that will be used for code type verification.
/// If <see cref="TypeName"/> is not unique (for example template that ends with <>) this function will be used to verify that code type is correct for user type.
/// </summary>
public string CodeTypeVerification { get; set; }
}
}