Hey man, thanks for the reply. I am all about refactoring.
The nested foreach loops were a mechanism to derive all possible permutations of objects out of a set.
Think of it as...
SLOT1 (Item1,Item2,It em3,Item4,Item5 )
SLOT2(Item6,Ite m7,Item8,Item9, Item10)
SLOT3(Item11,It em12,Item13,Ite m14,Item15)
out to 20 slots...
And you want to get every possible permutation...
User Profile
Collapse
-
Hello Everyone,
First of all I would like to say thank you for your posts, and apologize for not responding more promptly. Unfortunately this was a program which was not high priority and it took me a while to find the solution.
What was happening is this, I was storing objects for successful hits to certain criteria out of a high growth permutation. What happened is that I was storing all possible matches, then sorting...Leave a comment:
-
Hey thanks for the response Plater. I will give that a shot and let you guys know if it resolves the issue.Leave a comment:
-
C# memory consumption outta control...
Hello Gentlemen..
I have a program that is calculating all possible permutations of objects within an object.
The code looks very much like...
...Code:foreach (item as currentItem in Items) { MasterObject.Item1 = currentItem; foreach (item2 as currentItem2 in Items2) { MasterObject.Item2 = currentItem2; foreach (item3 as currentItem3 in Items3)
No activity results to display
Show More
Leave a comment: