BuildingCoder.CmdCollectorPerformance.FilterRule C# (CSharp) Method

FilterRule() private static method

private static FilterRule ( Document doc, string familySymbolName ) : IList
doc Document
familySymbolName string
return IList
        private static IList<Element> FilterRule( Document doc, string familySymbolName )
        {
            IList<Element> elements
            = GetStructuralColumnSymbolCollector( doc )
              .WherePasses(
            new ElementParameterFilter(
              new FilterStringRule(
                new ParameterValueProvider( new ElementId( BuiltInParameter.SYMBOL_NAME_PARAM ) ),
                new FilterStringEquals(), familySymbolName, true ) ) )
              .ToElements();

              return elements;
        }