AddFiles() 공개 메소드

public AddFiles ( string f ) : void
f string
리턴 void
예제 #1
0
        /// <summary>
        /// Sort an string array
        /// </summary>
        /// <param name="stringArray">String array</param>
        /// <returns></returns>
        public static string[] Sort(string[] stringArray)
        {
            if (stringArray == null) return null;

            FileLogicalComparer fc = new FileLogicalComparer();
            fc.AddFiles(stringArray);
            ArrayList ds = fc.GetSorted();

            if (ds == null) return stringArray;

            for (int i = 0; i < ds.Count; i++)
            {
                stringArray[i] = (string)((DictionaryEntry)ds[i]).Value;
            }

            return stringArray;
        }
예제 #2
0
        /// <summary>
        /// Sort an string array
        /// </summary>
        /// <param name="stringArray">String array</param>
        /// <returns></returns>
        public static string[] Sort(string[] stringArray)
        {
            if (stringArray == null)
            {
                return(null);
            }

            FileLogicalComparer fc = new FileLogicalComparer();

            fc.AddFiles(stringArray);
            ArrayList ds = fc.GetSorted();

            if (ds == null)
            {
                return(stringArray);
            }

            for (int i = 0; i < ds.Count; i++)
            {
                stringArray[i] = (string)((DictionaryEntry)ds[i]).Value;
            }

            return(stringArray);
        }