public static StorageFile CreateFileAtPath(string path, string name, CreationCollisionOption collisionOption) { Task <StorageFile> task = StorageUtility.AsyncCreateFileAtPath(path, name, collisionOption); task.Wait(); return(task.Result); }
public unsafe static long $Invoke1(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncCreateFileAtPath(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)), *(int *)(args + 2)))); }