using System;
namespace DeviceRepair.Utils.Config
{
///
/// 是否DES加密特性
///
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class DESEncryptedAttribute : Attribute
{
#region Fieles & Property
private bool isEncrypted;
///
/// 属性值是否是DES加密文本
///
public bool IsEncrypted
{
get
{
return isEncrypted;
}
set
{
isEncrypted = value;
}
}
#endregion
#region Ctor
///
/// Ctor
///
public DESEncryptedAttribute()
: this(true)
{
}
///
/// Ctor
///
/// 属性值是否是DES加密文本
public DESEncryptedAttribute(bool required)
{
this.isEncrypted = required;
}
#endregion
}
}