public List <Attribute> AllAttributes() { List <Attribute> list = new List <Attribute>(); if (Father != null) { list = Father.AllAttributes(); } foreach (var item in Attributes) { list.Add(item); } return(list); }