Click here to Skip to main content
15,112,667 members
Home / Discussions / C#
   

C#

 
AnswerRe: Please Check Pin
_Erik_24-Jan-11 4:43
Member_Erik_24-Jan-11 4:43 
Questioni want to solve this Pin
Nabawoka21-Jan-11 23:21
MemberNabawoka21-Jan-11 23:21 
AnswerRe: i want to solve this Pin
Richard MacCutchan21-Jan-11 23:35
mveRichard MacCutchan21-Jan-11 23:35 
GeneralRe: i want to solve this Pin
Nabawoka21-Jan-11 23:39
MemberNabawoka21-Jan-11 23:39 
AnswerRe: i want to solve this Pin
Nabawoka21-Jan-11 23:55
MemberNabawoka21-Jan-11 23:55 
GeneralRe: i want to solve this Pin
Estys22-Jan-11 0:00
MemberEstys22-Jan-11 0:00 
GeneralRe: i want to solve this Pin
Nabawoka22-Jan-11 1:02
MemberNabawoka22-Jan-11 1:02 
AnswerRe: i want to solve this Pin
Estys22-Jan-11 1:30
MemberEstys22-Jan-11 1:30 
Collections are dead easy Smile | :)

The example I gave you already adds things to your group.

To iterate over a collection use foreach :

public int Sum(string groupName)
{
    int retValue = 0;
    foreach (IThing ithing in things[groupName])
    {
        retValue += ithing.Result;
    }
    return retValue;
}


You can do the same for TotalSum. The only difference is to iterate over the things groupNames with KeyValues

Cheers
If you can read this, you don't have Papyrus installed

GeneralRe: i want to solve this Pin
OriginalGriff22-Jan-11 1:41
mveOriginalGriff22-Jan-11 1:41 
GeneralRe: i want to solve this Pin
Dave Kreskowiak22-Jan-11 10:03
mveDave Kreskowiak22-Jan-11 10:03 
GeneralRe: i want to solve this Pin
Estys22-Jan-11 12:26
MemberEstys22-Jan-11 12:26 
AnswerRe: i want to solve this Pin
Estys22-Jan-11 0:00
MemberEstys22-Jan-11 0:00 
Questionhow to run a sever when the IIS runs? Pin
xaq69388826521-Jan-11 22:55
Memberxaq69388826521-Jan-11 22:55 
AnswerRe: how to run a sever when the IIS runs? Pin
R. Giskard Reventlov21-Jan-11 23:12
MemberR. Giskard Reventlov21-Jan-11 23:12 
QuestionMAPI Windows Live mail Pin
M Riaz Bashir21-Jan-11 21:31
MemberM Riaz Bashir21-Jan-11 21:31 
AnswerRe: MAPI Windows Live mail Pin
lw@zi 21-Jan-11 23:00
professional lw@zi 21-Jan-11 23:00 
GeneralRe: MAPI Windows Live mail Pin
M Riaz Bashir21-Jan-11 23:40
MemberM Riaz Bashir21-Jan-11 23:40 
Questionproblem with capturing images through webcam in win7 Pin
prasadbuddhika21-Jan-11 17:29
Memberprasadbuddhika21-Jan-11 17:29 
AnswerRe: problem with capturing images through webcam in win7 Pin
Luc Pattyn21-Jan-11 18:13
sitebuilderLuc Pattyn21-Jan-11 18:13 
QuestionMDI form with contents? Pin
patr1c1a21-Jan-11 6:34
Memberpatr1c1a21-Jan-11 6:34 
AnswerRe: MDI form with contents? Pin
Dave Kreskowiak21-Jan-11 8:02
mveDave Kreskowiak21-Jan-11 8:02 
GeneralRe: MDI form with contents? [modified] Pin
patr1c1a21-Jan-11 8:52
Memberpatr1c1a21-Jan-11 8:52 
GeneralRe: MDI form with contents? Pin
Dave Kreskowiak21-Jan-11 11:29
mveDave Kreskowiak21-Jan-11 11:29 
AnswerRe: MDI form with contents? Pin
KarlRhodes24-Jan-11 7:22
MemberKarlRhodes24-Jan-11 7:22 
QuestionCopying DropDownItems from one ToolStripDropDownItem to another Pin
Dewald21-Jan-11 3:24
MemberDewald21-Jan-11 3: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.