Esempio n. 1
0
    public static StorageFile CreateFile(StorageFolder folder, string name, CreationCollisionOption collisionOption)
    {
        Task <StorageFile> task = StorageUtility.AsyncCreateFile(folder, name, collisionOption);

        task.Wait();
        return(task.Result);
    }
Esempio n. 2
0
 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))));
 }