예제 #1
0
 public unsafe static long $Invoke11(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncMoveAndReplaceFile((StorageFile)GCHandledObjects.GCHandleToObject(*args), (StorageFile)GCHandledObjects.GCHandleToObject(args[1]))));
 }
예제 #2
0
    public static void MoveAndReplaceFile(StorageFile replacer, StorageFile fileToReplace)
    {
        Task task = StorageUtility.AsyncMoveAndReplaceFile(replacer, fileToReplace);

        task.Wait();
    }