예제 #1
0
 private static void ShowData(Sample3Data data, bool dumpData)
 {
     Console.Clear();
     if (dumpData)
     {
         Console.WriteLine("Data from storage!!!");
     }
     Console.WriteLine("Next offset: {0}", data.NextOffset);
     Console.WriteLine("Distribution:");
     foreach (var pair in data.Distribution)
     {
         Console.WriteLine("[{0}]: {1}", pair.Key, pair.Value);
     }
 }
예제 #2
0
 private static void ShowData(Sample3Data data, bool dumpData)
 {
     Console.Clear();
     if (dumpData)
         Console.WriteLine("Data from storage!!!");
     Console.WriteLine("Next offset: {0}", data.NextOffset);
     Console.WriteLine("Distribution:");
     foreach (var pair in data.Distribution)
     {
         Console.WriteLine("[{0}]: {1}", pair.Key, pair.Value);
     }
 }