void ReadCommitSources(XmlNodeList sources) { if (sources == null) { return; } Dictionary <string, CommitSource> commitSources = CommitSources; foreach (XmlNode node in sources) { var cs = new CommitSource(); try { cs.Read(node); commitSources.Add(cs.ID, cs); } catch (Exception ex) { Log(ex, "Failure to read commit source with ID '{4}'.\n{0}", cs.ID); } } }
void ReadCommitSources(XmlNodeList sources) { if (sources == null) return; Dictionary <string, CommitSource> commitSources = CommitSources; foreach (XmlNode node in sources) { var cs = new CommitSource (); try { cs.Read (node); commitSources.Add (cs.ID, cs); } catch (Exception ex) { Log (ex, "Failure to read commit source with ID '{4}'.\n{0}", cs.ID); } } }