BExIS.IO.Transform.Output.DataWriter.GetSubsetOfVariables C# (CSharp) Method

GetSubsetOfVariables() protected method

select a subset of the variables from a datastructure based on a list of variablenames
protected GetSubsetOfVariables ( List source, String selected ) : List
source List full list of variables
selected String variablenames
return List
        protected List<Variable> GetSubsetOfVariables(List<Variable> source, String[] selected)
        {
            return source.Where(p=> selected.Contains(p.Id.ToString())).ToList();
        }