Click here to Skip to main content
15,915,324 members
Home / Discussions / C#
   

C#

 
GeneralRe: Checking if any items in a listbox are selected Pin
Lucy13-Sep-07 4:42
Lucy13-Sep-07 4:42 
GeneralRe: Checking if any items in a listbox are selected Pin
led mike13-Sep-07 7:38
led mike13-Sep-07 7:38 
QuestionMemory Usage Pin
student_rhr13-Sep-07 3:21
student_rhr13-Sep-07 3:21 
AnswerRe: Memory Usage Pin
Guffa13-Sep-07 3:28
Guffa13-Sep-07 3:28 
GeneralRe: Memory Usage Pin
student_rhr13-Sep-07 4:12
student_rhr13-Sep-07 4:12 
GeneralRe: Memory Usage Pin
Lutosław13-Sep-07 4:53
Lutosław13-Sep-07 4:53 
AnswerRe: Memory Usage Pin
Urs Enzler13-Sep-07 3:57
Urs Enzler13-Sep-07 3:57 
AnswerRe: Memory Usage Pin
Judah Gabriel Himango13-Sep-07 9:47
sponsorJudah Gabriel Himango13-Sep-07 9:47 
Guffa answered your question correctly for class instances: passing a class instance to a method will *NOT* copy it; you're passing a pointer to that instance.

As Urs mentioned, if you pass a struct instance (say, a System.Int32, a DateTime, or your own custom struct), it *WILL* pass a copy of the struct instance to the method.

In summary: class instances are passed by reference (no copying going on), and struct instances are passed by value (copying).

As a side note, if you do want to pass values by reference, you can do so using the ref keyword.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Sound The Great Shofar!
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


QuestionReversible Cipher Question Pin
paas13-Sep-07 3:20
paas13-Sep-07 3:20 
AnswerRe: Reversible Cipher Question Pin
Colin Angus Mackay13-Sep-07 3:28
Colin Angus Mackay13-Sep-07 3:28 
AnswerRe: Reversible Cipher Question Pin
Dan Neely13-Sep-07 3:58
Dan Neely13-Sep-07 3:58 
GeneralRe: Reversible Cipher Question Pin
paas13-Sep-07 4:24
paas13-Sep-07 4:24 
GeneralRe: Reversible Cipher Question Pin
Mark Churchill13-Sep-07 15:29
Mark Churchill13-Sep-07 15:29 
AnswerRe: Reversible Cipher Question Pin
Luc Pattyn13-Sep-07 4:07
sitebuilderLuc Pattyn13-Sep-07 4:07 
GeneralRe: Reversible Cipher Question Pin
Dan Neely13-Sep-07 4:42
Dan Neely13-Sep-07 4:42 
QuestionWhat is the best way of security that ensure that my application be authorised to the only pruchaser? Pin
Yasser Abu Elmakarem13-Sep-07 3:17
Yasser Abu Elmakarem13-Sep-07 3:17 
AnswerRe: What is the best way of security that ensure that my application be authorised to the only pruchaser? Pin
Luc Pattyn13-Sep-07 4:12
sitebuilderLuc Pattyn13-Sep-07 4:12 
QuestionHow to open my application without installing dot net framework? Pin
Yasser Abu Elmakarem13-Sep-07 3:07
Yasser Abu Elmakarem13-Sep-07 3:07 
AnswerRe: How to open my application without installing dot net framework? Pin
Pete O'Hanlon13-Sep-07 3:10
mvePete O'Hanlon13-Sep-07 3:10 
Questiontextbox help Pin
KppsK13-Sep-07 2:42
KppsK13-Sep-07 2:42 
AnswerRe: textbox help Pin
Giorgi Dalakishvili13-Sep-07 2:59
mentorGiorgi Dalakishvili13-Sep-07 2:59 
GeneralRe: textbox help Pin
Frank Kerrigan13-Sep-07 6:23
Frank Kerrigan13-Sep-07 6:23 
GeneralRe: textbox help Pin
KppsK15-Sep-07 12:01
KppsK15-Sep-07 12:01 
QuestionDatagrid problem Pin
Nishad8513-Sep-07 2:06
Nishad8513-Sep-07 2:06 
AnswerRe: Datagrid problem Pin
Frank Kerrigan13-Sep-07 6:21
Frank Kerrigan13-Sep-07 6:21 

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.