Exemplo n.º 1
0
    public static StorageFile CreateFileAtPath(string path, string name, CreationCollisionOption collisionOption)
    {
        Task <StorageFile> task = StorageUtility.AsyncCreateFileAtPath(path, name, collisionOption);

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