issues with Singleton from a simpleton j/k

G

Guest

How would Singleton help store an array in memory?

My understanding of Singleton is that it allows for a class design to have
overrides so that depending on the request the singleton class can respond
in more than one way or create more than one type of instance dependent on
the singleton class request.

Should I be worried about creating an in memory array object that:

Can be called concurrently from multiple in this case web page requests that
are
using the in memory array to query if those array values are in use or
residing on the stack. What is a good way to query items on the stack?
 
G

Guest

A singleton is a design pattern that describes a class that when instantiated
will only create a single object instance that can be shared by all users of
the class. (Like making the instance global).

Here is a link on ways to implement singletons using C#. (You can
translate to VB).

http://www.yoda.arachsys.com/csharp/singleton.html
 
C

Cor Ligthert [MVP]

Segue,

Have a look in VB Net to shared class.

In a webpage the information in it is shared by all clients that are active
for that application.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top