Пример #1
0
 public unsafe static long $Invoke3(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncFileCopy(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)), *(sbyte *)(args + 2) != 0)));
 }
Пример #2
0
    public static void FileCopy(string sourcePath, string destPath, bool overwrite)
    {
        Task <bool> task = StorageUtility.AsyncFileCopy(sourcePath, destPath, overwrite);

        task.Wait();
    }