CommentAttribute.cs 592 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace InABox.Core
  5. {
  6. /// <summary>
  7. /// Sets the "comment" of a given property. This allows for telling the user what a given column does, when selecting columns for grids and filters and stuff.
  8. /// This also is used as the <see cref="BaseEditor.ToolTip"/> if there is none provided.
  9. /// </summary>
  10. public class CommentAttribute : Attribute
  11. {
  12. public string Comment { get; set; }
  13. public CommentAttribute(string comment)
  14. {
  15. Comment = comment;
  16. }
  17. }
  18. }