Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
AnswerRe: Determining a generic type at runtime Pin
LongRange.Shooter7-Sep-06 8:16
LongRange.Shooter7-Sep-06 8:16 
GeneralRe: Determining a generic type at runtime Pin
Ista7-Sep-06 8:20
Ista7-Sep-06 8:20 
QuestionDatabound Variable : IS IT POSSIBLE >? Pin
Nadia Monalisa7-Sep-06 6:46
Nadia Monalisa7-Sep-06 6:46 
AnswerRe: Databound Variable : IS IT POSSIBLE >? Pin
LongRange.Shooter7-Sep-06 8:05
LongRange.Shooter7-Sep-06 8:05 
GeneralRe: Databound Variable : IS IT POSSIBLE >? Pin
Nadia Monalisa7-Sep-06 9:36
Nadia Monalisa7-Sep-06 9:36 
QuestionEnding a foreach loop prematurely Pin
Vodstok7-Sep-06 5:35
Vodstok7-Sep-06 5:35 
AnswerRe: Ending a foreach loop prematurely Pin
Colin Angus Mackay7-Sep-06 5:39
Colin Angus Mackay7-Sep-06 5:39 
AnswerRe: Ending a foreach loop prematurely Pin
LongRange.Shooter7-Sep-06 8:11
LongRange.Shooter7-Sep-06 8:11 
when iterating through a collection, there are several ways that you can exit the for loop. Mostly it depends on the logic in your program.
foreach ( Element item in elements )
{
        ...
     if ( item == condition ) break;          // exits for loop and continues
}
    more logic
foreach ( Element item in elements )
{
        ...
     if ( item == failure ) return;           // exits for loop and returns to caller
     if ( item == typeof(Bypass) continue;    // bypasses remaining logic but stays in loop
        ... more logic ...
     if ( item.State == State.NoPostProcessNeeded )
        break;                                // exits the for loop but executes epilogue
     post process logic ...
}
     epilogue logic
return;

QuestionAppbar - when exiting the desktop area isn't re-occupied by other apps Pin
Muller27-Sep-06 5:16
Muller27-Sep-06 5:16 
AnswerRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
led mike7-Sep-06 5:42
led mike7-Sep-06 5:42 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Muller27-Sep-06 8:12
Muller27-Sep-06 8:12 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
led mike7-Sep-06 8:17
led mike7-Sep-06 8:17 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
mav.northwind7-Sep-06 10:01
mav.northwind7-Sep-06 10:01 
AnswerRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Nader Elshehabi7-Sep-06 6:08
Nader Elshehabi7-Sep-06 6:08 
JokeRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Guffa7-Sep-06 9:25
Guffa7-Sep-06 9:25 
JokeRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Nader Elshehabi7-Sep-06 11:32
Nader Elshehabi7-Sep-06 11:32 
QuestionPlaying media files in a Web Browser Pin
AB77717-Sep-06 4:53
AB77717-Sep-06 4:53 
AnswerRe: Playing media files in a Web Browser Pin
ic3b3rg38-Sep-06 12:09
ic3b3rg38-Sep-06 12:09 
QuestionGet a pixel color on the desktop Pin
Ista7-Sep-06 4:48
Ista7-Sep-06 4:48 
AnswerRe: Get a pixel color on the desktop Pin
Dustin Metzgar7-Sep-06 5:06
Dustin Metzgar7-Sep-06 5:06 
GeneralRe: Get a pixel color on the desktop Pin
Jun Du7-Sep-06 5:12
Jun Du7-Sep-06 5:12 
GeneralRe: Get a pixel color on the desktop Pin
leppie7-Sep-06 9:57
leppie7-Sep-06 9:57 
QuestionReading image pixel colors? Pin
Goalie357-Sep-06 4:31
Goalie357-Sep-06 4:31 
AnswerRe: Reading image pixel colors? Pin
User 66587-Sep-06 4:36
User 66587-Sep-06 4:36 
AnswerRe: Reading image pixel colors? Pin
Judah Gabriel Himango7-Sep-06 4:42
sponsorJudah Gabriel Himango7-Sep-06 4:42 

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.