DataReadColumnIndexAttribute.cs 948 B

1234567891011121314151617181920212223242526272829303132
  1. /*********************************************************************************
  2. *Author: OnClick
  3. *Version: 0.0.1
  4. *UnityVersion: 2018.3.11f1
  5. *Date: 2019-09-08
  6. *Description: IFramework
  7. *History: 2018.11--
  8. *********************************************************************************/
  9. using System;
  10. namespace IFramework.Serialization.DataTable
  11. {
  12. /// <summary>
  13. /// 数据列
  14. /// </summary>
  15. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
  16. public class DataReadColumnIndexAttribute:Attribute
  17. {
  18. /// <summary>
  19. /// 所在列
  20. /// </summary>
  21. public int index { get; }
  22. /// <summary>
  23. /// ctor
  24. /// </summary>
  25. /// <param name="index"></param>
  26. public DataReadColumnIndexAttribute(int index)
  27. {
  28. this.index = index;
  29. }
  30. }
  31. }