Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SerieHandlerAttribute.cs 592B

12345678910111213141516171819202122
  1. using System;
  2. namespace XCharts.Runtime
  3. {
  4. [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
  5. public sealed class SerieHandlerAttribute : Attribute
  6. {
  7. public readonly Type handler;
  8. public readonly bool allowMultiple = true;
  9. public SerieHandlerAttribute(Type handler)
  10. {
  11. this.handler = handler;
  12. this.allowMultiple = true;
  13. }
  14. public SerieHandlerAttribute(Type handler, bool allowMultiple)
  15. {
  16. this.handler = handler;
  17. this.allowMultiple = allowMultiple;
  18. }
  19. }
  20. }