Example #1
0
 private static void Populate(StringBuilder builder, Dictionary <string, Func <object> > source)
 {
     foreach (var key in source.Keys)
     {
         builder.AppendLine($"{key}: {SnapshotData.InvokeNoThrow(source[key])}");
     }
 }
Example #2
0
 private void Fill(Dictionary <string, object> dest, Dictionary <string, Func <object> > source)
 {
     foreach (var key in source.Keys)
     {
         dest[key] = SnapshotData.InvokeNoThrow(source[key]);
     }
 }