Exemple #1
0
 public static bool CheckVersion()
 {
     string[] strArray;
     try
     {
         strArray = ZLib.zlibVersion().Split('.');
     }
     catch (DllNotFoundException ex)
     {
         return(false);
     }
     return(strArray[0] == "1");
 }
Exemple #2
0
        public static bool CheckVersion()
        {
            bool flag;

            string[] strArrays = null;
            try
            {
                strArrays = ZLib.zlibVersion().Split(new char[] { '.' });
                return(strArrays[0] == "1");
            }
            catch (DllNotFoundException dllNotFoundException)
            {
                flag = false;
            }
            return(flag);
        }