Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
Questionoverlapping area of n ractangles Pin
hotthoughtguy6-Feb-10 10:41
hotthoughtguy6-Feb-10 10:41 
Questionchange resource file dynamically Pin
jojoba20106-Feb-10 7:19
jojoba20106-Feb-10 7:19 
AnswerRe: change resource file dynamically Pin
Richard MacCutchan6-Feb-10 9:23
mveRichard MacCutchan6-Feb-10 9:23 
QuestionResource+C# Pin
jojoba20106-Feb-10 5:45
jojoba20106-Feb-10 5:45 
AnswerRe: Resource+C# Pin
Richard MacCutchan6-Feb-10 9:20
mveRichard MacCutchan6-Feb-10 9:20 
Questionproblem with winform visual style in c# Pin
evanxg6-Feb-10 4:53
evanxg6-Feb-10 4:53 
QuestionChange A Property Within The Foreach Loop Pin
BlitzPackage6-Feb-10 3:54
BlitzPackage6-Feb-10 3:54 
AnswerRe: Change A Property Within The Foreach Loop Pin
OriginalGriff6-Feb-10 4:19
mveOriginalGriff6-Feb-10 4:19 
It is fine to change a property; the only thing you can't do is change the loop variable or the list itself.
So
foreach(Employee janitor in EmployeesWithPayIncrease)
   {
   janitor.Salary += 5000;
   }
is fine, but
foreach(Employee janitor in EmployeesWithPayIncrease)
   {
   janitor = new Employee();
   }
or
foreach(Employee janitor in EmployeesWithPayIncrease)
   {
   EmployeesWithPayIncrease.Remove(janitor);
   }
are not, as it would mean it would compromise the enumeration.
If Barbie is so popular, why do you have to buy her friends?

Eagles may soar, but weasels don't get sucked into jet engines.

If at first you don't succeed, destroy all evidence that you tried.

GeneralRe: Change A Property Within The Foreach Loop Pin
harold aptroot6-Feb-10 4:22
harold aptroot6-Feb-10 4:22 
GeneralRe: Change A Property Within The Foreach Loop Pin
OriginalGriff6-Feb-10 4:29
mveOriginalGriff6-Feb-10 4:29 
GeneralRe: Change A Property Within The Foreach Loop Pin
harold aptroot6-Feb-10 4:37
harold aptroot6-Feb-10 4:37 
AnswerRe: Change A Property Within The Foreach Loop Pin
BlitzPackage6-Feb-10 4:45
BlitzPackage6-Feb-10 4:45 
GeneralRe: Change A Property Within The Foreach Loop Pin
harold aptroot6-Feb-10 5:12
harold aptroot6-Feb-10 5:12 
AnswerRe: Change A Property Within The Foreach Loop Pin
#realJSOP6-Feb-10 5:44
professional#realJSOP6-Feb-10 5:44 
GeneralRe: Change A Property Within The Foreach Loop Pin
OriginalGriff6-Feb-10 9:00
mveOriginalGriff6-Feb-10 9:00 
AnswerRe: Change A Property Within The Foreach Loop Pin
AspDotNetDev6-Feb-10 19:18
protectorAspDotNetDev6-Feb-10 19:18 
Questionforms & files [modified] Pin
jojoba20106-Feb-10 2:31
jojoba20106-Feb-10 2:31 
QuestionMulti dimension Array Not Working [Solved] Pin
Wamuti6-Feb-10 2:07
Wamuti6-Feb-10 2:07 
AnswerRe: Multi dimension Array Not Working Pin
harold aptroot6-Feb-10 2:18
harold aptroot6-Feb-10 2:18 
QuestionProblem with Interface? Pin
mdrizwan_15-Feb-10 23:13
mdrizwan_15-Feb-10 23:13 
AnswerRe: Problem with Interface? Pin
Eddy Vluggen5-Feb-10 23:24
professionalEddy Vluggen5-Feb-10 23:24 
GeneralRe: Problem with Interface? Pin
OriginalGriff5-Feb-10 23:29
mveOriginalGriff5-Feb-10 23:29 
GeneralRe: Problem with Interface? Pin
Eddy Vluggen5-Feb-10 23:38
professionalEddy Vluggen5-Feb-10 23:38 
AnswerRe: Problem with Interface? Pin
OriginalGriff5-Feb-10 23:28
mveOriginalGriff5-Feb-10 23:28 
AnswerRe: Problem with Interface? Pin
Md. Marufuzzaman6-Feb-10 0:14
professionalMd. Marufuzzaman6-Feb-10 0:14 

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.