Click here to Skip to main content
15,916,318 members
Home / Discussions / C#
   

C#

 
AnswerRe: frames in asp.net Pin
ednrgc11-Jan-07 2:17
ednrgc11-Jan-07 2:17 
GeneralRe: frames in asp.net Pin
raju_net181811-Jan-07 20:45
raju_net181811-Jan-07 20:45 
AnswerRe: frames in asp.net Pin
sanaziuse11-Jan-07 2:47
sanaziuse11-Jan-07 2:47 
GeneralRe: frames in asp.net Pin
raju_net181811-Jan-07 20:46
raju_net181811-Jan-07 20:46 
AnswerRe: frames in asp.net [modified] Pin
Not Active11-Jan-07 2:59
mentorNot Active11-Jan-07 2:59 
GeneralRe: frames in asp.net Pin
raju_net181811-Jan-07 20:43
raju_net181811-Jan-07 20:43 
QuestionPERSIST, DAMN YOU! Pin
Barguast211-Jan-07 1:13
Barguast211-Jan-07 1:13 
QuestionGarbage Collector Pin
Ashwani_kumar11-Jan-07 1:08
Ashwani_kumar11-Jan-07 1:08 
Hi Somebody has asked me a question in interview.
we have two classes Class1 and Class2
public class Class1
{
private Class2 obj;
public void method1()
{
obj = new Class2();
}
public void method2()
{
obj.method1();
}

}

public class Class2
{
public Class2()
{
GC.SuppressFinalize(this); }
public void method1()
{

}
}

Now in GUI form: onbutton_Click I write the follwing code:

Class1 class1 = new Class1();
class1.method1();
class1.method2();
After the above code is finished, WILL Garabage collector collect objects of Class1 and Class2 or not?

Ashwani

AnswerRe: Garbage Collector Pin
MCSD-Gandalf11-Jan-07 2:22
MCSD-Gandalf11-Jan-07 2:22 
GeneralRe: Garbage Collector Pin
Ashwani_kumar11-Jan-07 2:41
Ashwani_kumar11-Jan-07 2:41 
GeneralRe: Garbage Collector Pin
Mircea Puiu11-Jan-07 2:57
Mircea Puiu11-Jan-07 2:57 
GeneralRe: Garbage Collector Pin
Colin Angus Mackay11-Jan-07 4:46
Colin Angus Mackay11-Jan-07 4:46 
GeneralRe: Garbage Collector Pin
Dave Kreskowiak11-Jan-07 5:41
mveDave Kreskowiak11-Jan-07 5:41 
GeneralRe: Garbage Collector Pin
Dan Neely11-Jan-07 6:56
Dan Neely11-Jan-07 6:56 
GeneralRe: Garbage Collector Pin
Dave Kreskowiak11-Jan-07 12:06
mveDave Kreskowiak11-Jan-07 12:06 
AnswerRe: Garbage Collector Pin
Colin Angus Mackay11-Jan-07 4:42
Colin Angus Mackay11-Jan-07 4:42 
AnswerRe: Garbage Collector Pin
Dave Kreskowiak11-Jan-07 4:44
mveDave Kreskowiak11-Jan-07 4:44 
QuestionWhen is [Serializable] enough ? Pin
MarkPhB11-Jan-07 0:28
MarkPhB11-Jan-07 0:28 
AnswerRe: When is [Serializable] enough ? Pin
J4amieC11-Jan-07 0:44
J4amieC11-Jan-07 0:44 
GeneralRe: When is [Serializable] enough ? Pin
MarkPhB11-Jan-07 1:14
MarkPhB11-Jan-07 1:14 
GeneralRe: When is [Serializable] enough ? Pin
Bekjong11-Jan-07 1:26
Bekjong11-Jan-07 1:26 
GeneralRe: When is [Serializable] enough ? Pin
MarkPhB11-Jan-07 2:26
MarkPhB11-Jan-07 2:26 
GeneralRe: When is [Serializable] enough ? Pin
Bekjong11-Jan-07 2:59
Bekjong11-Jan-07 2:59 
QuestionToolStripProgressBar/Progressbar Pin
GunaChinna11-Jan-07 0:17
GunaChinna11-Jan-07 0:17 
AnswerRe: ToolStripProgressBar/Progressbar Pin
Stefan Troschuetz11-Jan-07 1:08
Stefan Troschuetz11-Jan-07 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.