aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core/CustomAttributes/PropertyIndexAttribute.cs
blob: c9a4fbc9dabcdbd906202b3306da4e72dd98fdec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Core.CustomAttributes
{
    [AttributeUsage(AttributeTargets.Property)]
    public class PropertyIndexAttribute : Attribute
    {
        public int Index { get; set; }

        public PropertyIndexAttribute()
        {
            Index = 0;
        }

        public PropertyIndexAttribute(int index) : this()
        {
            Index = index;
        }
    }
}