Skeet Singletons and VB

  • Thread starter Thread starter Daniel Billingsley
  • Start date Start date
D

Daniel Billingsley

Hey Jon (or anyone else) -

I've pointed a couple of developers to your Singleton article when I noticed
they were giving "First version - not thread safe" examples of their code.

They're VB developers though, and didn't know what to do with your
discussion of the BeforeFieldInit issue, as it's based on C# specifications.
Do you know how that applies to VB?
 
Daniel Billingsley said:
I've pointed a couple of developers to your Singleton article when I noticed
they were giving "First version - not thread safe" examples of their code.

They're VB developers though, and didn't know what to do with your
discussion of the BeforeFieldInit issue, as it's based on C# specifications.
Do you know how that applies to VB?

Eek - no idea, I'm afraid. The easiest way to check is to disassemble
the resulting class. I wouldn't be surprised to see the same kind of
effects. (I'd test it, but I don't have time right now to find out the
VB.NET syntax for type initializers.)
 
Back
Top