dot.net 2.0 c#
i have 2 Questions....easy one 1st
How to destroy a object within itself without calling dispose
example
namespace mytest
{
class someclass
{
private someobject;
public someclass(){
someobject = new someobject();
}
public void Destroy
{
someobject=null;
//code to set this = null
}
}
}
/// 2nd question
I have a windows service that starts a thread manager
example from onstart
public void OnStart()
//manager is a private field of the service
Manager=new ThreadManager()
//initthreads creates all the worker threads
if (Manager.InitThreads()==false)
{
this.stop() ;
}
//here is my question
should i run the manager on its own Thread or is the above ok...there is
a timer started and maintained when
Manager.InitThread() Runs....and all works just fine...?