BuildingCoder.CmdCollectorPerformance.GetElementsOfTypeUsingExplicitCode C# (CSharp) Метод

GetElementsOfTypeUsingExplicitCode() приватный Метод

Return a list of all elements matching the given type using explicit code to test the element type.
private GetElementsOfTypeUsingExplicitCode ( Type type ) : List
type Type
Результат List
        List<Element> GetElementsOfTypeUsingExplicitCode(
            Type type)
        {
            FilteredElementCollector a
            = GetNonElementTypeElements();

              List<Element> b = new List<Element>();
              foreach( Element e in a )
              {
            if( e.GetType().Equals( type ) )
            {
              b.Add( e );
            }
              }
              return b;
        }