示例#1
0
        public bool HasFlag(FieldTags flag)
        {
            var attributes = info.GetCustomAttributes(typeof(FieldTag), false);

            foreach (FieldTag tag in attributes)
            {
                if (tag.flag.HasFlag(flag))
                {
                    return(true);
                }
            }
            return(false);
        }
示例#2
0
 public FieldTag(FieldTags tag, string arg = null)
 {
     this.flag = tag;
     this.arg  = arg;
 }