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); }
public FieldTag(FieldTags tag, string arg = null) { this.flag = tag; this.arg = arg; }