Click here to Skip to main content
15,891,762 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serilize MouseEventArgs Pin
DaveyM694-Sep-11 6:45
professionalDaveyM694-Sep-11 6:45 
GeneralRe: Serilize MouseEventArgs Pin
Doubin1-Oct-11 1:12
Doubin1-Oct-11 1:12 
GeneralRe: Serilize MouseEventArgs Pin
nrnoble3-Oct-11 15:33
nrnoble3-Oct-11 15:33 
QuestionDiscussion: What is the default type (ref or value) for parameters passed to function?? Pin
Cracked-Down19-Mar-09 3:14
Cracked-Down19-Mar-09 3:14 
AnswerRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
Dave Kreskowiak19-Mar-09 3:36
mveDave Kreskowiak19-Mar-09 3:36 
GeneralRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
S. Senthil Kumar19-Mar-09 3:45
S. Senthil Kumar19-Mar-09 3:45 
AnswerRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
S. Senthil Kumar19-Mar-09 3:36
S. Senthil Kumar19-Mar-09 3:36 
AnswerRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
Eslam Afifi19-Mar-09 3:40
Eslam Afifi19-Mar-09 3:40 
By default, by value (a copy).
If the parameter is a value type, it's a "copy" of that value.
If the parameter is a reference type, it's a "copy" of that reference (by reference).

If you use ref or out:
If the parameter is a value type, you pass a reference (address) to it.
If the parameter is a reference type, you pass a reference to this original reference which refers to the object. As an example of this, write a function that takes 2 arrays and swaps them (without copying the elements).

Eslam Afifi

GeneralRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
Cracked-Down19-Mar-09 3:57
Cracked-Down19-Mar-09 3:57 
GeneralRe: Discussion: What is the default type (ref or value) for parameters passed to function?? [modified] Pin
Eslam Afifi19-Mar-09 4:07
Eslam Afifi19-Mar-09 4:07 
GeneralRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
S. Senthil Kumar20-Mar-09 4:02
S. Senthil Kumar20-Mar-09 4:02 
QuestionBlocking Windows Mobile Applications Pin
arimao19-Mar-09 2:51
arimao19-Mar-09 2:51 
AnswerRe: Blocking Windows Mobile Applications Pin
Eddy Vluggen19-Mar-09 4:13
professionalEddy Vluggen19-Mar-09 4:13 
GeneralRe: Blocking Windows Mobile Applications Pin
Eddy Vluggen19-Mar-09 4:36
professionalEddy Vluggen19-Mar-09 4:36 
GeneralRe: Blocking Windows Mobile Applications Pin
arimao19-Mar-09 4:40
arimao19-Mar-09 4:40 
GeneralRe: Blocking Windows Mobile Applications Pin
arimao19-Mar-09 4:42
arimao19-Mar-09 4:42 
GeneralRe: Blocking Windows Mobile Applications Pin
Eddy Vluggen19-Mar-09 4:53
professionalEddy Vluggen19-Mar-09 4:53 
GeneralRe: Blocking Windows Mobile Applications Pin
harold aptroot19-Mar-09 5:07
harold aptroot19-Mar-09 5:07 
GeneralRe: Blocking Windows Mobile Applications Pin
arimao19-Mar-09 7:35
arimao19-Mar-09 7:35 
AnswerRe: Blocking Windows Mobile Applications Pin
DaveyM6919-Mar-09 4:20
professionalDaveyM6919-Mar-09 4:20 
QuestionTrouble installing Windows Service on different computer Pin
Shven4719-Mar-09 2:49
Shven4719-Mar-09 2:49 
AnswerRe: Trouble installing Windows Service on different computer Pin
Nissim Salomon19-Mar-09 3:23
Nissim Salomon19-Mar-09 3:23 
AnswerRe: Trouble installing Windows Service on different computer Pin
Dave Kreskowiak19-Mar-09 3:40
mveDave Kreskowiak19-Mar-09 3:40 
GeneralRe: Trouble installing Windows Service on different computer Pin
Shven4719-Mar-09 4:53
Shven4719-Mar-09 4:53 
QuestionDll Progamming Pin
Arne_swede19-Mar-09 2:12
Arne_swede19-Mar-09 2:12 

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.