using System;
namespace Unosquare.Swan.Attributes {
///
/// An attribute used to include additional information to a Property for serialization.
///
/// Previously we used DisplayAttribute from DataAnnotation.
///
///
[AttributeUsage(AttributeTargets.Property)]
public sealed class PropertyDisplayAttribute : Attribute {
///
/// Gets or sets the name.
///
///
/// The name.
///
public String Name {
get; set;
}
///
/// Gets or sets the description.
///
///
/// The description.
///
public String Description {
get; set;
}
///
/// Gets or sets the name of the group.
///
///
/// The name of the group.
///
public String GroupName {
get; set;
}
///
/// Gets or sets the default value.
///
///
/// The default value.
///
public Object DefaultValue {
get; set;
}
///
/// Gets or sets the format string to call with method ToString.
///
///
/// The format.
///
public String Format {
get; set;
}
}
}