ModuleAttribute.cs 442 B

12345678910111213141516
  1. namespace Quadarax.Application.QLiberace.Common.Attributes
  2. {
  3. [AttributeUsage(AttributeTargets.Class)]
  4. public class ModuleAttribute : Attribute
  5. {
  6. public string ModuleCode { get; set; }
  7. public ModuleAttribute(string moduleCode)
  8. {
  9. if (string.IsNullOrEmpty(moduleCode)) throw new ArgumentNullException(nameof(moduleCode));
  10. ModuleCode = moduleCode;
  11. }
  12. }
  13. }