22 lines
553 B
C#
22 lines
553 B
C#
using System;
|
|
|
|
namespace Golems.Attributes
|
|
{
|
|
/// <summary>
|
|
/// OnValueChange Attribute Invokes
|
|
/// passed Method when Field Value is changed.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
|
|
public class OnValueChanged : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Method to Invoke when Value change detected
|
|
/// </summary>
|
|
public string Method { get; private set; } = "";
|
|
|
|
public OnValueChanged(string method)
|
|
{
|
|
Method = method;
|
|
}
|
|
}
|
|
} |