Ejemplo n.º 1
0
 /// <summary>
 /// Reads the file to the end as a byte array
 /// </summary>
 /// <returns>A byte array containing the contents of the file</returns>
 public Task <byte[]> ReadBinaryAsync()
 {
     if (InternalFile is null)
     {
         return(Task.FromResult(Array.Empty <byte>()));
     }
     return(InternalFile.ReadBinaryAsync());
 }