Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
QuestionRe: Some questions regarding ListView fundamental behaviour [modified] Pin
eyalbi00710-Mar-08 21:59
eyalbi00710-Mar-08 21:59 
GeneralRe: Some questions regarding ListView fundamental behaviour Pin
LongRange.Shooter11-Mar-08 16:32
LongRange.Shooter11-Mar-08 16:32 
GeneralRe: Some questions regarding ListView fundamental behaviour Pin
eyalbi00711-Mar-08 22:06
eyalbi00711-Mar-08 22:06 
QuestionDictionary Sorting ??? Pin
Jammer9-Mar-08 6:44
Jammer9-Mar-08 6:44 
AnswerRe: Dictionary Sorting ??? Pin
Professor Sharada Ulhas9-Mar-08 10:57
Professor Sharada Ulhas9-Mar-08 10:57 
GeneralRe: Dictionary Sorting ??? Pin
Jammer9-Mar-08 11:29
Jammer9-Mar-08 11:29 
GeneralRe: Dictionary Sorting ??? Pin
Judah Gabriel Himango10-Mar-08 11:31
sponsorJudah Gabriel Himango10-Mar-08 11:31 
GeneralRe: Dictionary Sorting ??? Pin
Jammer9-Mar-08 12:46
Jammer9-Mar-08 12:46 
Ok, I'm stuck on something else with this dictionary malarky now. Once I've done an evaluation and worked out the highest value in my dictionary and grabbed the string I need to reset all the values in the dictionary to zero.

I'm getting errors at the moment saying that the collection has been modified and that it can't enumerate over the collection. So far I've tried:

Dictionary<string, int="">.KeyCollection keycoll = FileScore.Keys;
foreach (string s in keycoll)
{
    FileScore[s] = 0;
}</string,>


Which fails on the second loop ...

and I've tried:

foreach (KeyValuePair<string, int=""> kvp in FileScore)
{
    FileScore[kvp.Key] = 0;
}</string,>


How am I going to get around this problem of reinitialising the dictionary to hold all zero values?

Jammer

Going where everyone here has gone before! Smile | :)

GeneralRe: Dictionary Sorting ??? Pin
Judah Gabriel Himango10-Mar-08 7:17
sponsorJudah Gabriel Himango10-Mar-08 7:17 
GeneralRe: Dictionary Sorting ??? Pin
Jammer10-Mar-08 10:17
Jammer10-Mar-08 10:17 
GeneralRe: Dictionary Sorting ??? Pin
Jammer10-Mar-08 11:10
Jammer10-Mar-08 11:10 
GeneralRe: Dictionary Sorting ??? Pin
Judah Gabriel Himango10-Mar-08 11:19
sponsorJudah Gabriel Himango10-Mar-08 11:19 
GeneralRe: Dictionary Sorting ??? Pin
Jammer10-Mar-08 11:23
Jammer10-Mar-08 11:23 
GeneralRe: Dictionary Sorting ??? Pin
Judah Gabriel Himango10-Mar-08 11:33
sponsorJudah Gabriel Himango10-Mar-08 11:33 
GeneralRe: Dictionary Sorting ??? Pin
Jammer10-Mar-08 11:46
Jammer10-Mar-08 11:46 
GeneralOOP Question Pin
MarkPhB9-Mar-08 5:19
MarkPhB9-Mar-08 5:19 
GeneralRe: OOP Question Pin
User 66589-Mar-08 5:30
User 66589-Mar-08 5:30 
GeneralRe: OOP Question Pin
MarkPhB9-Mar-08 5:43
MarkPhB9-Mar-08 5:43 
GeneralRe: OOP Question Pin
User 66589-Mar-08 5:48
User 66589-Mar-08 5:48 
GeneralRe: OOP Question Pin
MarkPhB9-Mar-08 5:55
MarkPhB9-Mar-08 5:55 
GeneralRe: OOP Question Pin
Christian Graus9-Mar-08 11:07
protectorChristian Graus9-Mar-08 11:07 
GeneralSQLDependency and SQL Server Notification Services Pin
half-life9-Mar-08 4:59
half-life9-Mar-08 4:59 
GeneralRe: SQLDependency and SQL Server Notification Services Pin
Not Active9-Mar-08 6:04
mentorNot Active9-Mar-08 6:04 
GeneralRe: SQLDependency and SQL Server Notification Services Pin
half-life9-Mar-08 6:16
half-life9-Mar-08 6:16 
GeneralObject reference help needed Pin
Jammer9-Mar-08 4:22
Jammer9-Mar-08 4:22 

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.