public static IEnumerable <T> GetKnownAttributes <T>(ISymbol symbol) where T : Attribute { return(symbol.GetAttributes().Select(x => AttributeConverter.ConvertAttribute(x)).OfType <T>()); }
public static IEnumerable <Attribute> GetKnownAttributes(ISymbol symbol) { return(symbol.GetAttributes().Select(x => AttributeConverter.ConvertAttribute(x)).Where(x => x != null)); }