Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem with printing a page foreach listview.items Pin
Christian Graus30-Jun-08 21:58
protectorChristian Graus30-Jun-08 21:58 
GeneralRe: Problem with printing a page foreach listview.items Pin
andredani30-Jun-08 23:07
andredani30-Jun-08 23:07 
Questionabout c#.net Pin
rupmax30-Jun-08 21:39
rupmax30-Jun-08 21:39 
AnswerRe: about c#.net Pin
Christian Graus30-Jun-08 21:55
protectorChristian Graus30-Jun-08 21:55 
QuestionLINQ Pin
arkiboys30-Jun-08 21:23
arkiboys30-Jun-08 21:23 
AnswerRe: LINQ Pin
Christian Graus30-Jun-08 21:57
protectorChristian Graus30-Jun-08 21:57 
AnswerRe: LINQ Pin
Scott Dorman30-Jun-08 22:57
professionalScott Dorman30-Jun-08 22:57 
Questionsimple test Pin
blackjack215030-Jun-08 21:02
blackjack215030-Jun-08 21:02 
Not really important, but I'm just curious.
Say that you want to print something to a log if a global boolean (condition) variable is set.

How would you do it?

1)
if(condition)<br />
      CallLogMethod("Message");


OR

2)
CallLogMethod("Message");

and in the method body put

if(!condition)<br />
   return;


The first makes the code more bloated if used intensively, while the second uses the call stack even though it might not do anything.

So how would you do it?
AnswerRe: simple test Pin
Christian Graus30-Jun-08 21:56
protectorChristian Graus30-Jun-08 21:56 
AnswerRe: simple test Pin
Scott Dorman30-Jun-08 23:00
professionalScott Dorman30-Jun-08 23:00 
QuestionPropertyGrid Pin
KBou30-Jun-08 20:53
KBou30-Jun-08 20:53 
AnswerRe: PropertyGrid Pin
leppie30-Jun-08 20:55
leppie30-Jun-08 20:55 
QuestionRe: PropertyGrid [modified] Pin
KBou30-Jun-08 21:05
KBou30-Jun-08 21:05 
AnswerRe: PropertyGrid Pin
stancrm30-Jun-08 22:39
stancrm30-Jun-08 22:39 
QuestionRe: PropertyGrid Pin
KBou30-Jun-08 22:49
KBou30-Jun-08 22:49 
AnswerRe: PropertyGrid Pin
leppie1-Jul-08 1:08
leppie1-Jul-08 1:08 
GeneralRe: PropertyGrid Pin
KBou1-Jul-08 1:26
KBou1-Jul-08 1:26 
GeneralRe: PropertyGrid Pin
leppie1-Jul-08 3:35
leppie1-Jul-08 3:35 
QuestionQuery about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 20:47
Rocky#30-Jun-08 20:47 
AnswerRe: Query about generating random but unique keys of 6 digits? Pin
leppie30-Jun-08 20:54
leppie30-Jun-08 20:54 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:10
Rocky#30-Jun-08 21:10 
AnswerRe: Query about generating random but unique keys of 6 digits? Pin
N a v a n e e t h30-Jun-08 21:05
N a v a n e e t h30-Jun-08 21:05 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:15
Rocky#30-Jun-08 21:15 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
N a v a n e e t h30-Jun-08 21:18
N a v a n e e t h30-Jun-08 21:18 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:36
Rocky#30-Jun-08 21:36 

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.