blob: df08abc862ccd46d14d182086a68b8bfa91b40a5 (
plain)
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
|
using System;
using System.Collections.Generic;
namespace AdvancedInspector
{
/// <summary>
/// Used when inspected a method, gives control over how it is displayed or handled.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class MethodAttribute : Attribute
{
private MethodDisplay display = MethodDisplay.Button;
public MethodDisplay Display
{
get { return display; }
set { display = value; }
}
public MethodAttribute() { }
public MethodAttribute(MethodDisplay display)
{
this.display = display;
}
}
/// <summary>
/// How the method is displayed.
/// </summary>
public enum MethodDisplay
{
Button, // A button
Invoke // Invoke it so it draws its own stuff.
}
}
|