aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core/CustomAttributes/StringFormatAttribute.cs
blob: e7089b64df4ed1c6b8f07fc6407b855decdf4fdd (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 StringFormatAttribute : Attribute
    {
        public String Format { get; set; }

        public StringFormatAttribute()
        {
            Format = "0.0";
        }

        public StringFormatAttribute(String format) : this()
        {
            Format = format;
        }
    }
}