Duplicates in a dictionary then delete or add record
<p>So I created a dictionary DICTIONARY1</p>

<pre><code>dicFilesDT.Add(dateParts[1], (dateParts[1] + dateParts[2] ));
</code></pre>

<p>so that I would have just the:</p>

<p>KEY as the Date and
VALUE as the Date+Time</p>

<p>I need help in making another dictionary (DICTIONARY2) that would</p>

<ol>
<li><p>If there are no Duplicates from checking DICTIONARY2 using foreach keyvaluepair in DICTIONARY1 add Key Pair to DICTIONARY2</p></li>
<li><p>Check for duplicates of the Key (Date) (thinking ex. dictionary.ContainsKey)</p></li>
</ol>

<p>if the dictionary has the KEY then
Compare the KEY VALUE from DICTIONARY 1 to DICTIONARY 2 to see which one is larger</p>

<p>ex. 230132 compared to 100425</p>

<p>if DICTIONARY1 KEY VALUE is larger Delete KeyValuePair from DICTIONARY 2 and add DICTIONARY 1 KEY VALUE</p>

<p>else do nothing and continue the loop</p>

<p>Thank you folks for helping me wiht this.</p>
