public RingTreeNode(Rings ringValue) { _ringValue = ringValue; Type ringType = typeof(Rings); Type infoType = typeof(RingInfoAttribute); RingInfoAttribute attr = ringType.GetMember(ringValue.ToString())[0].GetCustomAttributes(infoType, false) .Cast <RingInfoAttribute>().SingleOrDefault(); _name = attr.Name; _description = attr.Description; }