private void AddLabel(SampleBuilder sampleBuilder, string name, Action <Label> setLabel) { var label = new Label { Key = _stringTable.Get(name) }; setLabel(label); sampleBuilder.AddLabel(label); }