How to avoid instantiating the class more than 10 times  
Author Message
HarishP





PostPosted: 2005-5-27 18:14:05 Top

dotnet-framework-aspnet, How to avoid instantiating the class more than 10 times Hi,

How to avoid instantiating the class more than 10 times


Harish.P
Sr. Software Engineer
Comat Technologies Pvt. Ltd.,
Bangalore
Email: email***@***.com
Phone: +91-80-2361 8951/52
Mobile: 9886041109


 
Hans Kesting





PostPosted: 2005-5-27 18:46:00 Top

dotnet-framework-aspnet >> How to avoid instantiating the class more than 10 times HarishP wrote:
> Hi,
>
> How to avoid instantiating the class more than 10 times
>
>
> Harish.P
> Sr. Software Engineer
> Comat Technologies Pvt. Ltd.,
> Bangalore
> Email: email***@***.com
> Phone: +91-80-2361 8951/52
> Mobile: 9886041109

For the entire web application (you *are* asking in an *asp* group ..)
or per user/session?
I'm curious: why do you think you need that?

You might be able to throw an exception on the 11th instantiation
(using a static "counter"), but I don't think you can decrease that
counter reliably when the application is "done" with a particular instance.

Hans Kesting


 
Kevin Spencer





PostPosted: 2005-5-27 19:01:00 Top

dotnet-framework-aspnet >> How to avoid instantiating the class more than 10 times > How to avoid instantiating the class more than 10 times

Don't do it?

What exactly are we talking about here? What class? In what context?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"HarishP" <email***@***.com> wrote in message
news:%email***@***.com...
> Hi,
>
> How to avoid instantiating the class more than 10 times
>
>
> Harish.P
> Sr. Software Engineer
> Comat Technologies Pvt. Ltd.,
> Bangalore
> Email: email***@***.com
> Phone: +91-80-2361 8951/52
> Mobile: 9886041109
>