GeneratedDirectRetrieveAttribute.cs 637 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace com.bbbirder
  5. {
  6. [AttributeUsage(AttributeTargets.Assembly,AllowMultiple = true)]
  7. public sealed partial class GeneratedDirectRetrieveAttribute:Attribute
  8. {
  9. public Type type { get; private set; }
  10. public string memberName { get; private set; }
  11. public bool HasMemberName { get;private set; }
  12. public GeneratedDirectRetrieveAttribute(Type type, string memberName = null)
  13. {
  14. this.type = type;
  15. this.memberName = memberName;
  16. HasMemberName = memberName != null;
  17. }
  18. }
  19. }