Ejemplo n.º 1
0
        internal void SetLogExtensions(string extensionList)
        {
            IEnumerable <string> extensions = extensionList
                                              .Split(';')
                                              .Select(extension => extension.Trim())
                                              .Where(extension => extension.Length > 0);

            foreach (string e in extensions)
            {
                LogExtensions.Add((e[0] == '.') ? e : string.Format(".{0}", e));
            }
        }
Ejemplo n.º 2
0
        internal void SetLogExtensions(string extensionList)
        {
            string[] extensions = extensionList.Split(';');

            foreach (string extension in extensions)
            {
                string e = extension.Trim();

                if (e.Length > 0)
                {
                    if (e[0] != '.')
                    {
                        LogExtensions.Add(string.Format(".{0}", e));
                    }
                    else
                    {
                        LogExtensions.Add(e);
                    }
                }
            }
        }