private string GetInjectionValue(string key) { if (InjectionItems.TryGetValue(key, out var result)) { return(result); } return(null); }
public void AddOrSetRecord(string key, string value) { if (InjectionItems.TryGetValue(key, out var result)) { if (result == value) { return; } InjectionItems[key] = value; } else { InjectionItems.Add(key, value); } }