1  [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
 2     public class LastModifiedAttribute : Attribute
 3     {
 4         private readonly DateTime _dateModified { get; private set; }
 5         private readonly string _changes { get; private set; }
 6         public LastModifiedAttribute(string dateModified, string changes)
 7         {
 8             _dateModified = DateTime.Parse(dateModified);
 9             _changes = changes;
10         }
11         public string Issues { get; set; }
12     }
13 
14     [AttributeUsage(AttributeTargets.Assembly)]
15     public class SupportsWhatsNewAttribute : Attribute
16     { }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-02-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-02
  • 2021-06-19
  • 2021-07-16
  • 2022-12-23
  • 2021-08-01
相关资源
相似解决方案