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

getCanonicalFile() private method

private getCanonicalFile ( ) : global::java.io.File
return global::java.io.File
        public virtual global::java.io.File getCanonicalFile()
        {
            global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
            using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 10)){
            return global::net.sf.jni4net.utils.Convertor.StrongJ2Cp<global::java.io.File>(@__env, @__env.CallObjectMethodPtr(this, global::java.io.File.j4n_getCanonicalFile21));
            }
        }

Usage Example

コード例 #1
0
ファイル: IOUtils.cs プロジェクト: NALSS/SmartDashboard.NET
 public virtual bool isSubDirectory(File @base, File child)
 {
   @base = @base.getCanonicalFile();
   child = child.getCanonicalFile();
   for (File file = child; file != null; file = file.getParentFile())
   {
     if (@base.equals((object) file))
       return true;
   }
   return false;
 }