public ProgramConfig FindOrCreate(string name, string defaultCommand) { if (Programs.ContainsKey(name)) { return(Programs[name]); } var result = new ProgramConfig(name, defaultCommand); Programs[name] = result; return(result); }
public ProgramConfig FindOrCreate(string name, string defaultCommand) { if (Programs.ContainsKey(name)) { return Programs[name]; } var result = new ProgramConfig(name, defaultCommand); Programs[name] = result; return result; }