Re: static props and methods = global variables??
From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 07/16/04
- Next message: Shiva: "Re: determine domain controller name"
- Previous message: Kyril Magnos: "Re: Threading Question"
- In reply to: Daniel Billingsley: "static props and methods = global variables??"
- Next in thread: Daniel Billingsley: "Re: static props and methods = global variables??"
- Reply: Daniel Billingsley: "Re: static props and methods = global variables??"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Jul 2004 11:49:55 -0400
"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:OCkv3U0aEHA.3988@tk2msftngp13.phx.gbl...
> I'd like to set (on launch) and then keep some AppDomain-wide variables.
>
> Is there anything "bad" with doing something like this (dumb example), or
is
> there another more "standard" way of accomplishing it?
Another question is modification. If the variables will never be modified
after initialization, then there's no problem. But if they can be modified,
then all access to the variables should be synchronized in case of access
from multiple threads.
-- John Saunders johnwsaundersiii at hotmail
- Next message: Shiva: "Re: determine domain controller name"
- Previous message: Kyril Magnos: "Re: Threading Question"
- In reply to: Daniel Billingsley: "static props and methods = global variables??"
- Next in thread: Daniel Billingsley: "Re: static props and methods = global variables??"
- Reply: Daniel Billingsley: "Re: static props and methods = global variables??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|