Ejemplo n.º 1
0
    public static bool FileExists(string path)
    {
        if (path == null)
        {
            return(false);
        }
        path = StorageUtility.ConvertPathSeparators(path);
        Task <bool> task = StorageUtility.FileExistsAsync(path);

        task.Wait();
        return(task.Result);
    }
Ejemplo n.º 2
0
 public unsafe static long $Invoke26(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.FileExistsAsync(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }