java.io.File.exists C# (CSharp) Method

exists() private method

private exists ( ) : bool
return bool
        public virtual bool exists()
        {
            global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
            using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 10)){
            return ((bool)(@__env.CallBooleanMethod(this, global::java.io.File.j4n_exists18)));
            }
        }

Usage Example

コード例 #1
0
ファイル: main$3.cs プロジェクト: NALSS/SmartDashboard.NET
 public virtual void run()
 {
   Exception exception;
   try
   {
     ((Window) main.access\u0024000()).pack();
     ((Window) main.access\u0024000()).setVisible(true);
     this.val\u0024monitor.setProgress(750);
     this.val\u0024monitor.setNote("Loading From Save");
     File.__\u003Cclinit\u003E();
     File file = new File((string) main.access\u0024000().getPrefs().__\u003C\u003EsaveFile.getValue());
     if (file.exists())
       main.access\u0024000().load(file.getPath());
     this.val\u0024monitor.setProgress(1000);
     return;
   }
   catch (Exception ex)
   {
     int num = 0;
     M0 m0 = ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num);
     if (m0 == null)
       throw;
     else
       exception = (Exception) m0;
   }
   Throwable.instancehelper_printStackTrace((Exception) exception);
   System.exit(1);
 }
All Usage Examples Of java.io.File::exists