static List GetLocalFeatureList()

in DiagManager/DiagClasses/DiagFactory.cs [143:169]


        static List<Feature>  GetLocalFeatureList(XPathNodeIterator iter) 
        {

            List<Feature> featList = new List<Feature>();
            while (iter.MoveNext())
            {
                string featurename = iter.Current.GetAttribute("name", "");
                bool featureenabled = Convert.ToBoolean(iter.Current.GetAttribute("enabled", ""));
                if (featureenabled)
                {
                    Feature feat = GlobalFeatureList.Find(x => x.Name == featurename);
                    //if global feature is populated, then check
                    if (feat == null && GlobalFeatureList.Count > 0)
                    {
                        throw new ArgumentException(string.Format("feature {0} doesn't exist in global list", featurename));
                    }
                    else
                    {
                        featList.Add(feat);
                    }
                }

            }
            return featList;


        }