Class events
From: Dave Kelly (dkelly_at_memco.co.uk)
Date: 01/11/05
- Next message: Ignacio Machin \( .NET/ C# MVP \): "Re: Inheritance and Types"
- Previous message: Ignacio Machin \( .NET/ C# MVP \): "Re: Inheritance and Types"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: Class events"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: Class events"
- Reply: Nick Malik [Microsoft]: "Re: Class events"
- Messages sorted by: [ date ] [ thread ]
Date: 11 Jan 2005 06:40:35 -0800
I have generated a class, which contains configuration data for my
application.
Unfortunately I cannot use a static implementation of the class, as it
requires a constructor.
I generate instances of this class in several other classes (wherever I
need to retrieve the config details).
I would like any of the classes to generate an event, for all instances
to reload the underlying xml file whenever any of the instances change
the properties.
Is it possible for a class instance to generate an event so that all
other instances will receive the event?
Regards,
Dave
- Next message: Ignacio Machin \( .NET/ C# MVP \): "Re: Inheritance and Types"
- Previous message: Ignacio Machin \( .NET/ C# MVP \): "Re: Inheritance and Types"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: Class events"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: Class events"
- Reply: Nick Malik [Microsoft]: "Re: Class events"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|