using System using System IO using System Linq namespace Lab7 class Pr

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
using System;
using System.IO;
using System.Linq;
namespace Lab7 {
class Program {
static void Main(string[] args) {
byte[] bytes = File.ReadAllBytes("Lab7.exe");
long result = bytes.Aggregate<byte, long>(0, (current, t) => current + t);
Console.WriteLine(result);
Console.ReadKey();
}
}
}