private static AttributeType[] AllAttribTypes(Revision<TypedEntity>[] mappedCollection) { return mappedCollection.Select( x => x.Item.Attributes.FirstOrDefault( y => y.AttributeDefinition.AttributeType.Alias == NodeNameAttributeType.AliasValue)) .WhereNotNull() .Select(x => x.AttributeDefinition.AttributeType) .ToArray(); }