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