private async Task <Bitmap> ConvertToBitmap(MatFileUploadEntry file) { MemoryStream stream = new MemoryStream(); await file.WriteToStreamAsync(stream); return(new Bitmap(stream)); }
ConvertMultipleInterfacesToClasses( IMatFileUploadEntry[] files) { MatFileUploadEntry[] resultFiles = new MatFileUploadEntry[files.Length]; files .ToList() .ForEach(file => { resultFiles .ToList() .Add(ConvertInterfaceToClass(file)); }); return(resultFiles); }