D
Dixon
wats the Diff Between Setting an object to NULL and calling the
Dispose() method for that object?
Dispose() method for that object?
DBConnection a = new DBConnection();
//At this stage both objects do hav a refrence,and their refrences are
held by the objects con and a
DBConnection obj;
DBConnection b;
//The objects obj and b hav nothing referred to, so wat about the
resources of these objects???
//So if they dont hav a reference is it equivalent to
con =null;
//So ive set con to null , so no reference here and their resources?
wat about them??
//At this stage is obj, b and con have no reference so wat about their
resources?
a.dispose();
//If i use dispose with object a then the reference is still there, but
the resource is released? is that right?