37 lines
641 B
C#
37 lines
641 B
C#
using System;
|
|
|
|
namespace JD.Statistics.Metric
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
|
|
public class MetricAttribute : Attribute
|
|
{
|
|
#region Variables
|
|
|
|
private readonly string m_name;
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
public MetricAttribute()
|
|
: this(null)
|
|
{
|
|
}
|
|
|
|
public MetricAttribute(string name)
|
|
{
|
|
m_name = name;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public string Name
|
|
{
|
|
get { return m_name; }
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|