예제 #1
0
파일: Program.cs 프로젝트: wastaz/with
 public static void Main(string[] args)
 {
     {
         Console.WriteLine("Starting: Class with additional property");
         var m = new TimingsNewClass();
         var timings = m.Get().OrderBy(t => t.Value).ToArray();
         var low = timings.Min(t => t.Value);
         Console.WriteLine(timings.Select(t => Stat.Map(t, low)).ToMarkdownTable());
     }
     {
         Console.WriteLine("Starting: Same Class");
         var m = new TimingsClone();
         var timings2 = m.Get().OrderBy(t => t.Value).ToArray();
         var low = timings2.Min(t => t.Value);
         Console.WriteLine(timings2.Select(t => Stat.Map(t, low)).ToMarkdownTable());
     }
     {
         Console.WriteLine("Starting: Struct Equals");
         var m = new TimingsEquals();
         var timings2 = m.Get().OrderBy(t => t.Value).ToArray();
         var low = timings2.Min(t => t.Value);
         Console.WriteLine(timings2.Select(t => Stat.Map(t, low)).ToMarkdownTable());
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: wastaz/with
 public static void Main(string[] args)
 {
     {
         Console.WriteLine("Starting: Class with additional property");
         var m       = new TimingsNewClass();
         var timings = m.Get().OrderBy(t => t.Value).ToArray();
         var low     = timings.Min(t => t.Value);
         Console.WriteLine(timings.Select(t => Stat.Map(t, low)).ToMarkdownTable());
     }
     {
         Console.WriteLine("Starting: Same Class");
         var m        = new TimingsClone();
         var timings2 = m.Get().OrderBy(t => t.Value).ToArray();
         var low      = timings2.Min(t => t.Value);
         Console.WriteLine(timings2.Select(t => Stat.Map(t, low)).ToMarkdownTable());
     }
     {
         Console.WriteLine("Starting: Struct Equals");
         var m        = new TimingsEquals();
         var timings2 = m.Get().OrderBy(t => t.Value).ToArray();
         var low      = timings2.Min(t => t.Value);
         Console.WriteLine(timings2.Select(t => Stat.Map(t, low)).ToMarkdownTable());
     }
 }