Click here to Skip to main content
15,887,248 members
Home / Discussions / C#
   

C#

 
AnswerRe: slow in filling data in datagridview Pin
thatraja27-Apr-11 4:35
professionalthatraja27-Apr-11 4:35 
AnswerRe: slow in filling data in datagridview Pin
Dhyanga27-Apr-11 7:12
Dhyanga27-Apr-11 7:12 
QuestionA question about references Pin
6,921,364 and growing27-Apr-11 3:32
6,921,364 and growing27-Apr-11 3:32 
AnswerRe: A question about references Pin
Rob Philpott27-Apr-11 3:44
Rob Philpott27-Apr-11 3:44 
GeneralRe: A question about references Pin
6,921,364 and growing27-Apr-11 18:19
6,921,364 and growing27-Apr-11 18:19 
GeneralRe: A question about references Pin
6,921,364 and growing27-Apr-11 18:34
6,921,364 and growing27-Apr-11 18:34 
AnswerRe: A question about references Pin
Ian Shlasko27-Apr-11 3:46
Ian Shlasko27-Apr-11 3:46 
AnswerRe: A question about references Pin
6,921,364 and growing27-Apr-11 18:31
6,921,364 and growing27-Apr-11 18:31 
Thanks, that very much clears the doubt.
Please see what I got is correct:

I have a reference stored to the object of the TestClass on the stack. When I pass this to the method ChangeClass, I just pass a value which refers to a memory location which is same as the actual memory location of the object. So any change to the fields of the class is reflected as the method is accessing the same memory location. When I assign the object null in the method, the reference to the object is no more available to the method. But it is still available to the Main method.

This is my understanding. Please let me know if I am wrong somewhere.

Thanks and voted as a "good answer".

PS: I am changing the message type to answer as it contains descriptive answer.
GeneralRe: A question about references Pin
Ian Shlasko28-Apr-11 1:36
Ian Shlasko28-Apr-11 1:36 
GeneralRe: A question about references Pin
6,921,364 and growing28-Apr-11 3:33
6,921,364 and growing28-Apr-11 3:33 
AnswerRe: A question about references Pin
V.27-Apr-11 3:52
professionalV.27-Apr-11 3:52 
GeneralRe: A question about references Pin
Ian Shlasko27-Apr-11 3:54
Ian Shlasko27-Apr-11 3:54 
QuestionOpinion on the following please... Pin
Rob Philpott27-Apr-11 3:15
Rob Philpott27-Apr-11 3:15 
AnswerRe: Opinion on the following please... Pin
Pete O'Hanlon27-Apr-11 3:17
mvePete O'Hanlon27-Apr-11 3:17 
GeneralRe: Opinion on the following please... Pin
Rob Philpott27-Apr-11 3:24
Rob Philpott27-Apr-11 3:24 
AnswerRe: Opinion on the following please... Pin
Ian Shlasko27-Apr-11 3:19
Ian Shlasko27-Apr-11 3:19 
GeneralRe: Opinion on the following please... Pin
Paladin200027-Apr-11 3:30
Paladin200027-Apr-11 3:30 
GeneralRe: Opinion on the following please... Pin
Rob Philpott27-Apr-11 3:36
Rob Philpott27-Apr-11 3:36 
GeneralRe: Opinion on the following please... Pin
Paladin200027-Apr-11 3:43
Paladin200027-Apr-11 3:43 
AnswerRe: Opinion on the following please... Pin
PIEBALDconsult27-Apr-11 14:30
mvePIEBALDconsult27-Apr-11 14:30 
QuestionGauge control to show an angle variation Pin
AlexB4727-Apr-11 3:08
AlexB4727-Apr-11 3:08 
AnswerRe: Gauge control to show an angle variation Pin
Ian Shlasko27-Apr-11 3:17
Ian Shlasko27-Apr-11 3:17 
QuestionAttributes in C# Pin
Loithuxua27-Apr-11 0:15
Loithuxua27-Apr-11 0:15 
AnswerRe: Attributes in C# PinPopular
Pete O'Hanlon27-Apr-11 0:21
mvePete O'Hanlon27-Apr-11 0:21 
GeneralRe: Attributes in C# Pin
Keith Barrow27-Apr-11 0:46
professionalKeith Barrow27-Apr-11 0:46 

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.