Exemple #1
0
        public string GenerateWindowsFeatures()
        {
            string        code = "";
            StringBuilder sb   = new StringBuilder();

            var fr = new WindowsFeatureReader();
            List <WindowsFeature> features = fr.GetFeatures();

            foreach (var windowsFeature in features)
            {
                code = windowsFeature.GetCode(2);
                sb.AppendLine(code);
            }

            return(sb.ToString());
        }
		public string GenerateWindowsFeatures()
		{
			string code = "";
			StringBuilder sb = new StringBuilder();

			var fr = new WindowsFeatureReader();
			List<WindowsFeature> features = fr.GetFeatures();

			foreach (var windowsFeature in features)
			{
				code = windowsFeature.GetCode(2);
				sb.AppendLine(code);
			}

			return sb.ToString();
		}