Click here to Skip to main content
15,913,939 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .NET Windows.Forms programs on Linux Pin
Heath Stewart20-Jul-03 5:45
protectorHeath Stewart20-Jul-03 5:45 
GeneralRe: .NET Windows.Forms programs on Linux Pin
igor196021-Jul-03 12:37
igor196021-Jul-03 12:37 
GeneralRe: .NET Windows.Forms programs on Linux Pin
Heath Stewart21-Jul-03 16:57
protectorHeath Stewart21-Jul-03 16:57 
GeneralRe: .NET Windows.Forms programs on Linux Pin
jparsons24-Jul-03 15:10
jparsons24-Jul-03 15:10 
GeneralRe: .NET Windows.Forms programs on Linux Pin
Rocky Moore23-Jul-03 1:51
Rocky Moore23-Jul-03 1:51 
QuestionSingletons: Static ctors or Monitors? Pin
Heath Stewart18-Jul-03 2:56
protectorHeath Stewart18-Jul-03 2:56 
AnswerRe: Singletons: Static ctors or Monitors? Pin
Andy Smith18-Jul-03 11:37
Andy Smith18-Jul-03 11:37 
GeneralRe: Singletons: Static ctors or Monitors? Pin
Heath Stewart18-Jul-03 22:18
protectorHeath Stewart18-Jul-03 22:18 
Essentially, this is the same as using a static constructor. All statics that are initialized are done so in the .cctor specialname (the static constructor). Using the above syntax is merely a shorthand. So, you've actually described the same process.

The first method I described and coded doesn't rely about a static constructor except for the synchronization object, which is only used by the Monitor and is not indicative of the singleton itself.

I appreciate your answer though. The latter part was good to know. I've always suspected based on evidence, but I've never been able to find it in the documentation which I've read from start to finish several times. (and, oh, how the ending makes me cry! :P)

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Singletons: Static ctors or Monitors? Pin
leppie19-Jul-03 2:10
leppie19-Jul-03 2:10 
GeneralPhotoshop-like toolbox issue Pin
lfsong17-Jul-03 2:32
lfsong17-Jul-03 2:32 
GeneralRe: Photoshop-like toolbox issue Pin
lfsong17-Jul-03 18:20
lfsong17-Jul-03 18:20 
GeneralRe: Photoshop-like toolbox issue Pin
lfsong20-Jul-03 4:02
lfsong20-Jul-03 4:02 
GeneralRe: Photoshop-like toolbox issue Pin
lfsong20-Jul-03 16:06
lfsong20-Jul-03 16:06 
GeneralRe: Photoshop-like toolbox issue Pin
lfsong22-Jul-03 2:29
lfsong22-Jul-03 2:29 
GeneralBuilding A Personal Webserver Pin
jmetcalf16-Jul-03 14:58
jmetcalf16-Jul-03 14:58 
GeneralRe: Building A Personal Webserver Pin
Heath Stewart17-Jul-03 1:25
protectorHeath Stewart17-Jul-03 1:25 
GeneralRun-Time Routines and .NET Framework Equivalents Pin
Nathan Blomquist15-Jul-03 4:35
Nathan Blomquist15-Jul-03 4:35 
GeneralRe: Run-Time Routines and .NET Framework Equivalents Pin
Frank Olorin Rizzi15-Jul-03 6:25
Frank Olorin Rizzi15-Jul-03 6:25 
GeneralRe: Run-Time Routines and .NET Framework Equivalents Pin
Nick Parker16-Jul-03 7:17
protectorNick Parker16-Jul-03 7:17 
GeneralRe: Run-Time Routines and .NET Framework Equivalents Pin
leppie16-Jul-03 7:33
leppie16-Jul-03 7:33 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 0:30
Xiangyang Liu 刘向阳15-Jul-03 0:30 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 0:55
Xiangyang Liu 刘向阳15-Jul-03 0:55 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 1:41
Xiangyang Liu 刘向阳15-Jul-03 1:41 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 1:50
Xiangyang Liu 刘向阳15-Jul-03 1:50 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 1:59
Xiangyang Liu 刘向阳15-Jul-03 1:59 

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.