Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
QuestionRemoving values in a dictionary [modified] Pin
Paul Harsent4-Jan-10 4:55
Paul Harsent4-Jan-10 4:55 
AnswerRe: Removing values in a dictionary Pin
Luc Pattyn4-Jan-10 5:12
sitebuilderLuc Pattyn4-Jan-10 5:12 
AnswerRe: Removing values in a dictionary Pin
OriginalGriff4-Jan-10 5:27
mveOriginalGriff4-Jan-10 5:27 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 5:32
Paul Harsent4-Jan-10 5:32 
GeneralRe: Removing values in a dictionary Pin
Luc Pattyn4-Jan-10 5:32
sitebuilderLuc Pattyn4-Jan-10 5:32 
AnswerRe: Removing values in a dictionary [modified] Pin
Luc Pattyn4-Jan-10 5:41
sitebuilderLuc Pattyn4-Jan-10 5:41 
AnswerRe: Removing values in a dictionary Pin
#realJSOP4-Jan-10 5:41
mve#realJSOP4-Jan-10 5:41 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 5:51
Paul Harsent4-Jan-10 5:51 
This line move media into a drive.
19/05/2009 10:53:40 Info Moved cartridge from Library 2 Slot 1 to Tape Drive 1

So I store the date time and the slot number(key) of when the media was moved into a drive, and when I see a removed media line, I used the date time from when it was moved out to show how long the media has been in.

I need to remove it from the dic because the media can be used again and I cant have duplicate keys.

FYI, there can be load of media being used at once, which I why I need to store this information.

An example of the data im reading in


19/05/2009 17:50:58 Info Moved cartridge from Library 2 Slot 4 to Tape Drive 1

19/05/2009 17:51:00 Info Moved cartridge from Library 2 Slot 8 to Tape Drive 2

19/05/2009 17:55:15 Info Moved cartridge from Library 2 Tape Drive 1 to Slot 4

19/05/2009 17:56:20 Info Moved cartridge from Library 2 Slot 1 to Tape Drive 1

19/05/2009 18:07:45 Info Moved cartridge from Library 2 Tape Drive 2 to Slot 8

19/05/2009 18:08:09 Info Moved cartridge from Library 2 Slot 7 to Tape Drive 2

20/05/2009 12:36:02 Info Moved cartridge from Library 2 Tape Drive 1 to Slot 1

20/05/2009 12:36:07 Info Moved cartridge from Library 2 Slot 6 to Tape Drive 1

20/05/2009 18:23:19 Info Moved cartridge from Library 2 Tape Drive 2 to Slot 7
GeneralRe: Removing values in a dictionary Pin
#realJSOP4-Jan-10 6:11
mve#realJSOP4-Jan-10 6:11 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 6:17
Paul Harsent4-Jan-10 6:17 
GeneralRe: Removing values in a dictionary Pin
Luc Pattyn4-Jan-10 6:50
sitebuilderLuc Pattyn4-Jan-10 6:50 
AnswerRe: Removing values in a dictionary Pin
David Skelly4-Jan-10 5:56
David Skelly4-Jan-10 5:56 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 6:00
Paul Harsent4-Jan-10 6:00 
GeneralRe: Removing values in a dictionary Pin
David Skelly4-Jan-10 6:17
David Skelly4-Jan-10 6:17 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 22:21
Paul Harsent4-Jan-10 22:21 
GeneralRe: Removing values in a dictionary Pin
Ben Fair4-Jan-10 6:36
Ben Fair4-Jan-10 6:36 
QuestionIs there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 4:40
edaindia4-Jan-10 4:40 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
JasonLee074-Jan-10 4:50
JasonLee074-Jan-10 4:50 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:17
edaindia4-Jan-10 6:17 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
sanforjackass4-Jan-10 4:53
sanforjackass4-Jan-10 4:53 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 5:14
professionalEddy Vluggen4-Jan-10 5:14 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:34
edaindia4-Jan-10 6:34 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 11:59
professionalEddy Vluggen4-Jan-10 11:59 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... PinPopular
Luc Pattyn4-Jan-10 5:14
sitebuilderLuc Pattyn4-Jan-10 5:14 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
#realJSOP4-Jan-10 5:24
mve#realJSOP4-Jan-10 5:24 

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.