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

C#

 
AnswerRe: Method parameters Pin
Leslie Sanford24-Nov-05 3:40
Leslie Sanford24-Nov-05 3:40 
GeneralRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 4:15
Colin Angus Mackay24-Nov-05 4:15 
AnswerRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 4:25
Colin Angus Mackay24-Nov-05 4:25 
GeneralRe: Method parameters Pin
Leslie Sanford24-Nov-05 4:46
Leslie Sanford24-Nov-05 4:46 
GeneralRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 4:58
Colin Angus Mackay24-Nov-05 4:58 
GeneralRe: Method parameters Pin
Leslie Sanford24-Nov-05 5:34
Leslie Sanford24-Nov-05 5:34 
GeneralRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 5:44
Colin Angus Mackay24-Nov-05 5:44 
AnswerRe: Method parameters Pin
Colin Angus Mackay24-Nov-05 5:02
Colin Angus Mackay24-Nov-05 5:02 
Okay - I guess I made some mistakes with my explanation.


1nsp1r3d wrote:
I thought that all reference types were passed by reference and all value types by value(enums and ints/floats/etc)?


A reference type is passed by reference insofaras you can update the object in the method and the changes will be reflected back in the original, but you cannot assign a new object.

If you use ref you are passing a reference to a reference and you can assign a new object in the method and have that new object reflected in the calling method.




My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious

-- modified at 11:03 Thursday 24th November, 2005


QuestionData types in reports (rdls) Pin
doph24-Nov-05 1:50
doph24-Nov-05 1:50 
QuestionConverting decimal to String Pin
Subrahmanyam K24-Nov-05 1:37
Subrahmanyam K24-Nov-05 1:37 
AnswerRe: Converting decimal to String Pin
J4amieC24-Nov-05 2:02
J4amieC24-Nov-05 2:02 
AnswerRe: Converting decimal to String Pin
Craig G Fraser24-Nov-05 2:04
Craig G Fraser24-Nov-05 2:04 
QuestionRegarding Strong name Pin
A.Grover24-Nov-05 1:23
A.Grover24-Nov-05 1:23 
AnswerRe: Regarding Strong name Pin
S. Senthil Kumar24-Nov-05 2:19
S. Senthil Kumar24-Nov-05 2:19 
GeneralRe: Regarding Strong name Pin
A.Grover24-Nov-05 23:14
A.Grover24-Nov-05 23:14 
Questionclient/server communication Pin
batmanAgen24-Nov-05 1:08
batmanAgen24-Nov-05 1:08 
QuestionGenetating XML Pin
Gktony24-Nov-05 0:56
Gktony24-Nov-05 0:56 
AnswerRe: Genetating XML Pin
J4amieC24-Nov-05 1:33
J4amieC24-Nov-05 1:33 
GeneralRe: Genetating XML Pin
Gktony24-Nov-05 3:06
Gktony24-Nov-05 3:06 
GeneralRe: Genetating XML Pin
J4amieC24-Nov-05 4:32
J4amieC24-Nov-05 4:32 
QuestionHow to make a Line Graph Pin
Emyat24-Nov-05 0:24
Emyat24-Nov-05 0:24 
QuestionDesign Issues Pin
Billy Whizz23-Nov-05 23:55
Billy Whizz23-Nov-05 23:55 
QuestionWinWordControl Pin
pramod.21c23-Nov-05 23:49
pramod.21c23-Nov-05 23:49 
QuestionIs there anyone who will help about reading information from RFID kit Pin
Tyler4523-Nov-05 23:46
Tyler4523-Nov-05 23:46 
QuestionDoubt in ListView Control Pin
P. Gnana Prakash23-Nov-05 23:39
P. Gnana Prakash23-Nov-05 23:39 

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.