public bool TryGet(Project project, out Entry entry) { if (project == null) throw new ArgumentNullException("project"); return _configurations.TryGetValue(project, out entry); }
public void Add(ProjectItem configurationItem, Configuration configuration) { if (configurationItem == null) throw new ArgumentNullException("configurationItem"); if (configuration == null) throw new ArgumentNullException("configuration"); var project = configurationItem.ContainingProject; var entry = new Entry(configurationItem, configuration); _configurations.Add(project, entry); }