BuildingCoder.CmdCollectorPerformance.Linq C# (CSharp) Method

Linq() static private method

static private Linq ( Document doc, string familySymbolName ) : IList
doc Document
familySymbolName string
return IList
        static IList<Element> Linq( Document doc, string familySymbolName )
        {
            IList<Element> elements
            = GetStructuralColumnSymbolCollector( doc )
              .ToElements();

              elements = elements.OfType<FamilySymbol>()
            .Where( x => x.Name == familySymbolName )
            .Cast<Element>()
            .ToList();

              return elements;
        }