using System; namespace JD.Reflection.Attributes { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public class ImportManyAttribute : Attribute, IImportAttribute { #region Constructor public ImportManyAttribute() : this(null) { } public ImportManyAttribute(string contractName) { ContractName = contractName; } #endregion #region Properties public string ContractName { get; private set; } ImportCardinality IImportAttribute.Cardinality { get { return ImportCardinality.ZeroOrMore; } } #endregion } }