Click here to Skip to main content
15,513,489 members
Home / Discussions / C#
   

C#

 
QuestionCreating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 10:25
roman_s19-Jul-10 10:25 
AnswerRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 10:36
sitebuilderLuc Pattyn19-Jul-10 10:36 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 10:47
roman_s19-Jul-10 10:47 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 10:58
sitebuilderLuc Pattyn19-Jul-10 10:58 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 11:52
roman_s19-Jul-10 11:52 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 12:22
sitebuilderLuc Pattyn19-Jul-10 12:22 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
DaveyM6919-Jul-10 11:02
professionalDaveyM6919-Jul-10 11:02 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 11:46
roman_s19-Jul-10 11:46 
So I created a dictionary DICTIONARY1
dicFilesDT.Add(dateParts[1], (dateParts[1] + dateParts[2] ));


so that I would have just the:

KEY as the Date and
VALUE as the Date+Time

I need help in making another dictionary (DICTIONARY2) that would

1. If there are no Duplicates from checking DICTIONARY2 using foreach keyvaluepair in DICTIONARY1 add Key Pair to DICTIONARY2


2. Check for duplicates of the Key (Date) (thinking ex. dictionary.ContainsKey)

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

ex. 230132 compared to 100425

if DICTIONARY1 KEY VALUE is larger Delete KeyValuePair from DICTIONARY 2 and add DICTIONARY 1 KEY VALUE

else do nothing and continue the loop



Thank you folks for helping me wiht this.
AnswerRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 12:15
sitebuilderLuc Pattyn19-Jul-10 12:15 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s20-Jul-10 4:35
roman_s20-Jul-10 4:35 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn20-Jul-10 5:22
sitebuilderLuc Pattyn20-Jul-10 5:22 
Questiongeneric List - Remove Duplicates Pin
Kevin Marois19-Jul-10 8:15
professionalKevin Marois19-Jul-10 8:15 
AnswerRe: generic List - Remove Duplicates Pin
Ennis Ray Lynch, Jr.19-Jul-10 8:20
Ennis Ray Lynch, Jr.19-Jul-10 8:20 
GeneralRe: generic List - Remove Duplicates Pin
Kevin Marois19-Jul-10 8:22
professionalKevin Marois19-Jul-10 8:22 
GeneralRe: generic List - Remove Duplicates Pin
DaveyM6919-Jul-10 8:56
professionalDaveyM6919-Jul-10 8:56 
AnswerRe: generic List - Remove Duplicates Pin
Luc Pattyn19-Jul-10 11:36
sitebuilderLuc Pattyn19-Jul-10 11:36 
QuestionImplementing database roles on menu and button level Pin
DotNetXenon19-Jul-10 7:30
DotNetXenon19-Jul-10 7:30 
AnswerRe: Implementing database roles on menu and button level Pin
Pete O'Hanlon19-Jul-10 7:49
mvaPete O'Hanlon19-Jul-10 7:49 
GeneralRe: Implementing database roles on menu and button level Pin
DotNetXenon19-Jul-10 9:13
DotNetXenon19-Jul-10 9:13 
GeneralRe: Implementing database roles on menu and button level Pin
Pete O'Hanlon19-Jul-10 10:49
mvaPete O'Hanlon19-Jul-10 10:49 
QuestionHow can you add a click event in the text box, C# , asp.net Pin
emmadahmad19-Jul-10 7:19
emmadahmad19-Jul-10 7:19 
AnswerRe: How can you add a click event in the text box, C# , asp.net Pin
Pete O'Hanlon19-Jul-10 7:40
mvaPete O'Hanlon19-Jul-10 7:40 
AnswerRe: How can you add a click event in the text box, C# , asp.net Pin
brunoseixas19-Jul-10 7:56
brunoseixas19-Jul-10 7:56 
QuestionDeclaring variables inside loops - inefficient? Pin
Adam Brown 319-Jul-10 6:19
Adam Brown 319-Jul-10 6:19 
AnswerRe: Declaring variables inside loops - inefficient? Pin
riced19-Jul-10 6:27
riced19-Jul-10 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.