public static StorageFile GetFileFromPath(string path) { path = StorageUtility.ConvertPathSeparators(path); Task <StorageFile> task = StorageUtility.AsyncGetFileFromPath(path); task.Wait(); return(task.Result); }
public unsafe static long $Invoke8(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncGetFileFromPath(Marshal.PtrToStringUni(*(IntPtr *)args)))); }