// X:\jsc.svn\examples\java\android\AndroidFileExplorerActivity\AndroidFileExplorerActivity\ApplicationActivity.cs public static string[] GetFiles(string p) { var f = new java.io.File(p); var files = f.listFiles(); return(files.Where(x => x.isFile()).Select(x => x.getAbsolutePath()).ToArray()); }
// X:\jsc.svn\examples\java\android\AndroidFileExplorerActivity\AndroidFileExplorerActivity\ApplicationActivity.cs public static string[] GetFiles(string p) { var f = new java.io.File(p); var files = f.listFiles(); return files.Where(x => x.isFile()).Select(x => x.getAbsolutePath()).ToArray(); }
private java.io.File[] getGroovyClasspath() { LinkedList <java.io.File> retval = new LinkedList <java.io.File>(); java.io.File libdir = new java.io.File(this._groovyHome.getAbsolutePath() + "/" + "lib"); foreach (java.io.File file in libdir.listFiles()) { if (file.getName().EndsWith(".jar")) { retval.AddFirst(file); } } return(retval.ToArray <java.io.File>()); }