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

C#

 
AnswerRe: slow in filling data in datagridview Pin
Rob Philpott27-Apr-11 4:21
Rob Philpott27-Apr-11 4:21 
AnswerRe: slow in filling data in datagridview Pin
R. Giskard Reventlov27-Apr-11 4:25
R. Giskard Reventlov27-Apr-11 4:25 
GeneralRe: slow in filling data in datagridview Pin
OriginalGriff27-Apr-11 8:25
mveOriginalGriff27-Apr-11 8:25 
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 
Thank you for answering.
Rob Philpott wrote:
That's because tc is a reference type passed by value, ie. a local copy

I do understand that, but what confuses me is why the values are changed then. I see an inconsistency in the behaviour. Since the memory reference is passed, if we are changing the value in the method, it is getting changed and assigning a null doesn't.

Rob Philpott wrote:
Stick the word 'ref' in front of it and you'll probably get the behaviour you're
expecting.

Yes that will do the job.
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 
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 

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.