Beispiel #1
0
        // Calls CaseInsensitiveComparer.Compare with the parameters reversed.
        public int Compare(System.IO.FileInfo x, System.IO.FileInfo y)
        {
            string val1_str = TileReader.ExtractTileNumber(this.prefix, x).ToString();
            string val2_str = TileReader.ExtractTileNumber(this.prefix, y).ToString();

            int val1 = Convert.ToInt32(val1_str);
            int val2 = Convert.ToInt32(val2_str);

            return(val1.CompareTo(val2));
        }
Beispiel #2
0
        // Calls CaseInsensitiveComparer.Compare with the parameters reversed.
        public int Compare(Object x, Object y)
        {
            FileInfo a = (FileInfo)x;
            FileInfo b = (FileInfo)y;

            string val1_str = TileReader.ExtractTileNumber(this.prefix, a).ToString();
            string val2_str = TileReader.ExtractTileNumber(this.prefix, b).ToString();

            int val1 = Convert.ToInt32(val1_str);
            int val2 = Convert.ToInt32(val2_str);

            return(val1.CompareTo(val2));
        }