Public Class SingletonProvider(Of itemtype As {New}) Public Sub New() End Sub Public Shared ReadOnly Property Instance() As itemtype Get Return SingletonCreator.instance End Get End Property Class SingletonCreator Shared Sub New() End Sub Public Shared ReadOnly instance As itemtype = New itemtype() End Class End Class
Powered by: newtelligence dasBlog 1.9.7174.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2009, Christiaan Baes
E-mail