Re: Is this possible...
From: Willem van Rumpt (no.slide.spam_at_no.thelandslide.spam.com)
Date: 10/18/04
- Next message: Bonj: "Re: How to program a really fast product search catalogue"
- Previous message: Bonj: "Re: Is this possible..."
- In reply to: craig: "Is this possible..."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 18 Oct 2004 21:09:11 +0200
I don't if this will fit in with your existing code,
but you could declare the LogOut method as a static member
of your class and pass the object that is to be logged
out as a ref parameter (doing all that has to be done,
and nulling the parameter at the end).
Willem van Rumpt
craig wrote:
> Assume that you have a User object, which abstracts an authenticated user of
> your application. It has some properties such as UserID, FirstName,
> LastName, etc. and a method LogOut(); The LogOut method logs the user out
> of the application. If the LogOut() method is successful, the user is
> logged out and the User object should no longer be valid. Is there a way to
> allow the LogOut() method to force the reference that is being held to the
> object to which it is a member (User) to be set to null?
>
> If not, I can force the object to return empty values for all properties
> after the LogOut() method has been successfully executed. But I was just
> wondering if it might be possible to actually blow away the object itself.
>
> Thanks!!
>
>
- Next message: Bonj: "Re: How to program a really fast product search catalogue"
- Previous message: Bonj: "Re: Is this possible..."
- In reply to: craig: "Is this possible..."
- Messages sorted by: [ date ] [ thread ]