public static StorageFile CreateFile(StorageFolder folder, string name, CreationCollisionOption collisionOption) { Task <StorageFile> task = StorageUtility.AsyncCreateFile(folder, name, collisionOption); task.Wait(); return(task.Result); }
public unsafe static long $Invoke0(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncCreateFile((StorageFolder)GCHandledObjects.GCHandleToObject(*args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)), *(int *)(args + 2)))); }