public bool attributeInUse(DataAttribute attribute) { if (attribute.UsagesAsVariable.Count() == 0 && attribute.UsagesAsParameter.Count() == 0) return false; else return true; }