예제 #1
0
        public static ShxFile GetShxFile(string filename, string[] path)
        {
            string str = ShxFile.smethod_3(filename, path);

            if (string.IsNullOrEmpty(str))
            {
                if (!"LTYPESHP.SHX".Equals(filename, StringComparison.InvariantCultureIgnoreCase))
                {
                    return((ShxFile)null);
                }
                lock (ShxFile.byte_0)
                {
                    if (ShxFile.shxFile_0 == null)
                    {
                        ShxFile.shxFile_0 = new ShxFile("LTYPESHP.SHX", ShxFile.byte_0);
                    }
                }
                return(ShxFile.shxFile_0);
            }
            ShxFile shxFile;

            lock (ShxFile.dictionary_5)
            {
                if (!ShxFile.dictionary_5.TryGetValue(str, out shxFile))
                {
                    shxFile = new ShxFile(str);
                }
            }
            return(shxFile);
        }
예제 #2
0
 public static bool Exists(string filename, string[] path)
 {
     return(ShxFile.smethod_3(filename, path) != null);
 }