Click here to Skip to main content
15,903,854 members
Home / Discussions / - Uncategorised posts -
   

- Uncategorised posts -

Please don't post in this forum. If you've posted in this forum it's because you've selected the first forum on the list without thinking through which forum would be best. All messages in this forum are periodically removed.

 
AnswerRe: Is programming good for our brain? Pin
thatraja7-Nov-13 6:32
professionalthatraja7-Nov-13 6:32 
AnswerRe: Is programming good for our brain? Pin
Kornfeld Eliyahu Peter13-Nov-13 19:54
professionalKornfeld Eliyahu Peter13-Nov-13 19:54 
AnswerRe: Is programming good for our brain? Pin
David.Moore8718-Dec-13 5:16
David.Moore8718-Dec-13 5:16 
AnswerRe: Is programming good for our brain? Pin
Member 1045693524-Dec-13 11:08
Member 1045693524-Dec-13 11:08 
QuestionHelp Finalize my proposed course for self study! Pin
Jon Plotner27-Sep-13 23:52
Jon Plotner27-Sep-13 23:52 
AnswerRe: Help Finalize my proposed course for self study! Pin
Richard MacCutchan28-Sep-13 0:40
mveRichard MacCutchan28-Sep-13 0:40 
QuestionPass by reference, Pass by value Pin
yBrian17-Sep-13 7:29
yBrian17-Sep-13 7:29 
AnswerRe: Pass by reference, Pass by value Pin
Nitin Singh India17-Sep-13 7:59
Nitin Singh India17-Sep-13 7:59 
When you are passing something to another function, it can get modified within that.
The importance comes into picture if you want to know what happens after the function returns. If you do not care about the post-return stage, then you can pass by value/reference, it doesn't affects your application logic in anyway. However, if you are concerned with the after value, you need to pass by reference.

Apart, given the framework implementation, an object is a heavyweight construct. So if we keep on passing such a huge object by creating a copy, it will hog up memory causing hung application and GC trigger. Hence the framework will auto (most i believe) will pass an object by reference and cause any changes to that be available outside the function as well. You can also pass a value type (structure) as reference, in which case it will be boxed into a reference type and then passed.

C# allows you to explicitly specify "ref" and "out" decorators on parameters. If applied either, the changes are visible after the function return, else by default it gets passed as value.
AnswerRe: Pass by reference, Pass by value Pin
Richard MacCutchan17-Sep-13 21:44
mveRichard MacCutchan17-Sep-13 21:44 
AnswerRe: Pass by reference, Pass by value Pin
Paul Guralivu18-Sep-13 20:48
Paul Guralivu18-Sep-13 20:48 
GeneralRe: Pass by reference, Pass by value Pin
yBrian19-Sep-13 5:09
yBrian19-Sep-13 5:09 
QuestionShould I use Boonex Dolphin? Pin
NoraTomas13-Sep-13 4:49
NoraTomas13-Sep-13 4:49 
AnswerRe: Should I use Boonex Dolphin? Pin
Dave Kreskowiak13-Sep-13 9:52
mveDave Kreskowiak13-Sep-13 9:52 
AnswerRe: Should I use Boonex Dolphin? Pin
Paul Guralivu18-Sep-13 20:52
Paul Guralivu18-Sep-13 20:52 
QuestionWMI query to a Biztalk Server Pin
Francisco Rojas6-Sep-13 11:00
Francisco Rojas6-Sep-13 11:00 
Questionload balancing , content switching , url redirect using WCF application with iis or Hyper V Pin
Member 1023810728-Aug-13 5:24
Member 1023810728-Aug-13 5:24 
QuestionA programming language to make a universal program Pin
C.CoderCreator13-Aug-13 1:48
C.CoderCreator13-Aug-13 1:48 
AnswerRe: A programming language to make a universal program Pin
Richard Deeming13-Aug-13 3:06
mveRichard Deeming13-Aug-13 3:06 
AnswerRe: A programming language to make a universal program Pin
Paul Guralivu18-Sep-13 20:56
Paul Guralivu18-Sep-13 20:56 
AnswerRe: A programming language to make a universal program Pin
Paulo Augusto Kunzel26-Sep-13 3:38
professionalPaulo Augusto Kunzel26-Sep-13 3:38 
QuestionClojure Lein - Changing Root Project Folder? Pin
Dominick Marciano6-Aug-13 7:36
professionalDominick Marciano6-Aug-13 7:36 
AnswerRe: Clojure Lein - Changing Root Project Folder? Pin
Richard MacCutchan6-Aug-13 20:44
mveRichard MacCutchan6-Aug-13 20:44 
QuestionPowershell: Dynamic Email Message Body Pin
namerg20-Jun-13 10:03
namerg20-Jun-13 10:03 
QuestionDumb Arse Calling -- How do I ... Pin
Member 1011528818-Jun-13 12:16
Member 1011528818-Jun-13 12:16 
AnswerRe: Dumb Arse Calling -- How do I ... Pin
Richard MacCutchan18-Jun-13 20:47
mveRichard MacCutchan18-Jun-13 20:47 

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.