Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 5:46
Le centriste8-Apr-09 5:46 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 5:47
Rob Philpott8-Apr-09 5:47 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 5:48
Le centriste8-Apr-09 5:48 
GeneralRe: Just for fun - what's the output of this? Pin
DominLondon8-Apr-09 5:49
DominLondon8-Apr-09 5:49 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 5:53
Le centriste8-Apr-09 5:53 
GeneralRe: Just for fun - what's the output of this? Pin
DominLondon8-Apr-09 5:54
DominLondon8-Apr-09 5:54 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 6:00
Le centriste8-Apr-09 6:00 
AnswerRe: Just for fun - what's the output of this? Pin
MNantu8-Apr-09 5:41
MNantu8-Apr-09 5:41 
I think the TestStatic.SaySomething will not be called and it will directly go to the catch block.

But the second TestStatic.SaySomething will be called because static constructors are called only once, afaik.

Am I correct ? Big Grin | :-D
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 5:44
Rob Philpott8-Apr-09 5:44 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 5:47
Le centriste8-Apr-09 5:47 
GeneralRe: Just for fun - what's the output of this? Pin
DominLondon8-Apr-09 5:48
DominLondon8-Apr-09 5:48 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 5:53
Le centriste8-Apr-09 5:53 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 5:56
Rob Philpott8-Apr-09 5:56 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 6:08
Le centriste8-Apr-09 6:08 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 6:15
Rob Philpott8-Apr-09 6:15 
AnswerRe: Just for fun - what's the output of this? Pin
musefan8-Apr-09 5:59
musefan8-Apr-09 5:59 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 6:02
Rob Philpott8-Apr-09 6:02 
GeneralRe: Just for fun - what's the output of this? Pin
musefan8-Apr-09 6:08
musefan8-Apr-09 6:08 
GeneralRe: Just for fun - what's the output of this? Pin
Le centriste8-Apr-09 6:10
Le centriste8-Apr-09 6:10 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 6:12
Rob Philpott8-Apr-09 6:12 
GeneralRe: Just for fun - what's the output of this? Pin
musefan8-Apr-09 6:10
musefan8-Apr-09 6:10 
AnswerRe: Just for fun - what's the output of this? Pin
harold aptroot8-Apr-09 6:04
harold aptroot8-Apr-09 6:04 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 6:05
Rob Philpott8-Apr-09 6:05 
GeneralRe: Just for fun - what's the output of this? Pin
harold aptroot8-Apr-09 6:08
harold aptroot8-Apr-09 6:08 
GeneralRe: Just for fun - what's the output of this? Pin
Rob Philpott8-Apr-09 6:10
Rob Philpott8-Apr-09 6:10 

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.