示例#1
0
        private async Task <Bitmap> ConvertToBitmap(MatFileUploadEntry file)
        {
            MemoryStream stream = new MemoryStream();
            await file.WriteToStreamAsync(stream);

            return(new Bitmap(stream));
        }
示例#2
0
        ConvertMultipleInterfacesToClasses(
            IMatFileUploadEntry[] files)
        {
            MatFileUploadEntry[] resultFiles =
                new MatFileUploadEntry[files.Length];

            files
            .ToList()
            .ForEach(file => {
                resultFiles
                .ToList()
                .Add(ConvertInterfaceToClass(file));
            });

            return(resultFiles);
        }