CPF/CPF.Mac/Mac/Foundation/AdviceAttribute.cs
2023-11-21 23:05:03 +08:00

20 lines
534 B
C#

using System;
namespace CPF.Mac.Foundation
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
public sealed class AdviceAttribute : Attribute
{
public string Message
{
get;
private set;
}
public AdviceAttribute(string message)
{
Message = message;
}
}
}