Example #1
0
    public static StorageFile GetFileFromPath(string path)
    {
        path = StorageUtility.ConvertPathSeparators(path);
        Task <StorageFile> task = StorageUtility.AsyncGetFileFromPath(path);

        task.Wait();
        return(task.Result);
    }
Example #2
0
 public unsafe static long $Invoke8(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncGetFileFromPath(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }