15 行
348 B
15 行
348 B
using System;
|
|
|
|
namespace NaughtyAttributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
|
|
public class ButtonAttribute : DrawerAttribute
|
|
{
|
|
public string Text { get; private set; }
|
|
|
|
public ButtonAttribute(string text = null)
|
|
{
|
|
this.Text = text;
|
|
}
|
|
}
|
|
}
|