red-agent linuxbox csharp Mono Shell type help for help Enter statemen

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
red-agent@linuxbox ~ $ csharp
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> LoadAssembly ("System.Core");
csharp> using System.Collections.Generic;
csharp> using System.Linq;
csharp> List <string> list = new List <string> { "aaa", "bbb", "ccc", "ddd", "eee", "fff" };
csharp> Time (() => { list.ConvertAll (delegate (string x) { return x.ToUpper (); }); });
00:00:00.0078950
csharp> Time (() => { list.Select (x => x.ToUpper ()).ToList (); });
00:00:00.0054500