Files
ZHGD_Web/SelfPackages/XCharts/Runtime/Internal/Attributes/SerieHandlerAttribute.cs

22 lines
592 B
C#
Raw Permalink Normal View History

2025-07-13 23:16:20 +08:00
using System;
namespace XCharts.Runtime
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class SerieHandlerAttribute : Attribute
{
public readonly Type handler;
public readonly bool allowMultiple = true;
public SerieHandlerAttribute(Type handler)
{
this.handler = handler;
this.allowMultiple = true;
}
public SerieHandlerAttribute(Type handler, bool allowMultiple)
{
this.handler = handler;
this.allowMultiple = allowMultiple;
}
}
}