using System; namespace JD.Reflection.Attributes { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)] public class ExportAttribute : Attribute { #region Constructor public ExportAttribute() : this(null, null) { } public ExportAttribute(Type contractType) : this(null, contractType) { } public ExportAttribute(string contractName) : this(contractName, null) { } public ExportAttribute(string contractName, Type contractType) { ContractName = contractName; ContractType = contractType; } #endregion #region Properties public string ContractName { get; private set; } public Type ContractType { get; private set; } #endregion } }