Beispiel #1
0
    public static string FileReadAllText(string file)
    {
        Task <string> task = StorageUtility.AsyncReadTextAsync(file);

        task.Wait();
        return(task.Result);
    }
Beispiel #2
0
 public unsafe static long $Invoke12(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncReadTextAsync(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }