using System;
namespace MadMilkman.Ini
{
///
/// Indicates the behavior of public property when serializing or deserializing the object that contains it.
///
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
public sealed class IniSerializationAttribute : Attribute
{
///
/// Gets the name of serialized the property.
///
public string Alias { get; private set; }
///
/// Gets the value indicating whether serialization is ignored.
///
public bool Ignore { get; private set; }
///
/// Initializes a new instance of the IniSerializationAttribute class and specifies the 's name.
///
/// The name of the generated .
public IniSerializationAttribute(string alias) { this.Alias = alias; }
///
/// Initializes a new instance of the IniSerializationAttribute class and specifies if serialization is ignored.
///
/// The value indicating whether serialization is ignored.
public IniSerializationAttribute(bool ignore) { this.Ignore = ignore; }
}
}