using System;
using System.Collections.Generic;
namespace AdvancedInspector
{
///
/// Used when inspected a method, gives control over how it is displayed or handled.
///
[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;
}
}
///
/// How the method is displayed.
///
public enum MethodDisplay
{
Button, // A button
Invoke // Invoke it so it draws its own stuff.
}
}