/// <summary> /// Processes attributes applied to one of the inheriting classes of this class /// </summary> private void ProcessAtrributes(FileManageable inst) { #region Get definition attribute Type t = inst.GetType(); object[] attr = t.GetCustomAttributes(typeof(ClassAttribute), false); if (attr.Length == 0) { return; } ClassAttribute ca = attr[0] as ClassAttribute; attribute = ca; #endregion groupTag = TagGroups.Groups[ca.GroupIndex]; }
/// <summary> /// Processes attributes applied to one of the inheriting classes of this class /// </summary> private void ProcessAtrributes(FileManageable inst) { #region Get definition attribute Type t = inst.GetType(); object[] attr = t.GetCustomAttributes(typeof(ClassAttribute), false); if (attr.Length == 0) return; ClassAttribute ca = attr[0] as ClassAttribute; attribute = ca; #endregion groupTag = TagGroups.Groups[ca.GroupIndex]; }