Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RequireChartComponentAttribute.cs 881B

12345678910111213141516171819202122232425262728
  1. using System;
  2. namespace XCharts.Runtime
  3. {
  4. [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
  5. public sealed class RequireChartComponentAttribute : Attribute
  6. {
  7. public readonly Type type0;
  8. public readonly Type type1;
  9. public readonly Type type2;
  10. public RequireChartComponentAttribute(Type requiredComponent)
  11. {
  12. type0 = requiredComponent;
  13. }
  14. public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)
  15. {
  16. type0 = requiredComponent;
  17. type1 = requiredComponent2;
  18. }
  19. public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)
  20. {
  21. type0 = requiredComponent;
  22. type1 = requiredComponent2;
  23. type2 = requiredComponent3;
  24. }
  25. }
  26. }