Beispiel #1
0
 private static bool TestRustNative()
 {
     try
     {
         if (!SelfCheck.RustNative_VersionCheck(5))
         {
             return(SelfCheck.Failed("RustNative is wrong version!"));
         }
     }
     catch (DllNotFoundException ex)
     {
         return(SelfCheck.Failed("RustNative library couldn't load! " + ex.Message));
     }
     return(true);
 }
    private static bool TestRustNative()
    {
        bool flag;

        try
        {
            if (SelfCheck.RustNative_VersionCheck(5))
            {
                return(true);
            }
            else
            {
                flag = SelfCheck.Failed("RustNative is wrong version!");
            }
        }
        catch (DllNotFoundException dllNotFoundException1)
        {
            DllNotFoundException dllNotFoundException = dllNotFoundException1;
            flag = SelfCheck.Failed(string.Concat("RustNative library couldn't load! ", dllNotFoundException.Message));
        }
        return(flag);
    }