J
John A Grandy
For a singleton class utilizes by ASP.NET 2.0 page processing:
When initial instantiation is performed during the initial call to the
retrieve instance method (let's call the method "getInstance()"), an
instantiated object of the class is assigned to the class' internal static
reference to that an object of itself (let's call the reference
"uniqueInstance")
Does that uniqueInstance have global scope in the context of page processing
?
In other words, will subsequent calls to getInstance() find uniqueInstance
!= null , and return it ? Or will they find uniqueInstance == null , and
re-instantiate an object of the class and assign it to unique instance ?
When initial instantiation is performed during the initial call to the
retrieve instance method (let's call the method "getInstance()"), an
instantiated object of the class is assigned to the class' internal static
reference to that an object of itself (let's call the reference
"uniqueInstance")
Does that uniqueInstance have global scope in the context of page processing
?
In other words, will subsequent calls to getInstance() find uniqueInstance
!= null , and return it ? Or will they find uniqueInstance == null , and
re-instantiate an object of the class and assign it to unique instance ?