Click here to Skip to main content
16,016,947 members
Home / Discussions / C#
   

C#

 
AnswerRe: String to stream Pin
Hessam Jalali6-Aug-07 20:08
Hessam Jalali6-Aug-07 20:08 
Questiongoto in c# Pin
Sonia Gupta6-Aug-07 19:18
Sonia Gupta6-Aug-07 19:18 
AnswerRe: goto in c# Pin
Christian Graus6-Aug-07 19:22
protectorChristian Graus6-Aug-07 19:22 
GeneralRe: goto in c# Pin
Sonia Gupta6-Aug-07 19:25
Sonia Gupta6-Aug-07 19:25 
QuestionRe: goto in c# Pin
Urs Enzler6-Aug-07 23:18
Urs Enzler6-Aug-07 23:18 
QuestionSending parameters to method by reference ... ? Pin
Yanshof6-Aug-07 19:18
Yanshof6-Aug-07 19:18 
AnswerRe: Sending parameters to method by reference ... ? Pin
Hessam Jalali6-Aug-07 20:26
Hessam Jalali6-Aug-07 20:26 
AnswerRe: Sending parameters to method by reference ... ? Pin
Luc Pattyn7-Aug-07 2:12
sitebuilderLuc Pattyn7-Aug-07 2:12 
Yanshof wrote:
as far as i know the parameters in this case are always delivered by reference


No, by default parameters are passed by value, as in C;
you can force them to be passed by reference by adding a "ref" or "out" keyword
(or an ampersand in C)

if you pass a value type, nothing more is to be said.
if you pass a reference type, the "value" is the reference, so the callee can use it,
change what it is refering to, but can not change the reference itself as seen by the
caller; if passing a reference type with "ref"/"out" keyword, then the callee can change
the reference itself as seen by the caller.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


QuestionMedia Pin
sulabh20206-Aug-07 18:52
sulabh20206-Aug-07 18:52 
AnswerRe: Media Pin
Ravi Bhavnani6-Aug-07 18:59
professionalRavi Bhavnani6-Aug-07 18:59 
GeneralRe: Media Pin
sulabh20206-Aug-07 19:06
sulabh20206-Aug-07 19:06 
Questionincrementing the array and preserving the values after incrementation Pin
Sonia Gupta6-Aug-07 18:38
Sonia Gupta6-Aug-07 18:38 
AnswerRe: incrementing the array and preserving the values after incrementation Pin
Ravi Bhavnani6-Aug-07 18:57
professionalRavi Bhavnani6-Aug-07 18:57 
GeneralRe: incrementing the array and preserving the values after incrementation Pin
Sonia Gupta6-Aug-07 18:59
Sonia Gupta6-Aug-07 18:59 
AnswerRe: incrementing the array and preserving the values after incrementation Pin
Guffa6-Aug-07 19:02
Guffa6-Aug-07 19:02 
GeneralRe: incrementing the array and preserving the values after incrementation Pin
Sonia Gupta6-Aug-07 19:39
Sonia Gupta6-Aug-07 19:39 
GeneralRe: incrementing the array and preserving the values after incrementation Pin
Dave Doknjas7-Aug-07 13:41
Dave Doknjas7-Aug-07 13:41 
AnswerRe: incrementing the array and preserving the values after incrementation Pin
Guffa6-Aug-07 18:59
Guffa6-Aug-07 18:59 
GeneralRe: incrementing the array and preserving the values after incrementation Pin
Sonia Gupta6-Aug-07 19:00
Sonia Gupta6-Aug-07 19:00 
Questionhow to read the pen drive autorun file Pin
San@Coding6-Aug-07 16:35
San@Coding6-Aug-07 16:35 
QuestionReal helpful error message! NOT Pin
Mike Hankey6-Aug-07 16:19
mveMike Hankey6-Aug-07 16:19 
QuestionReferencing exe project Pin
MAW306-Aug-07 15:56
MAW306-Aug-07 15:56 
AnswerRe: Referencing exe project Pin
Luc Pattyn7-Aug-07 2:18
sitebuilderLuc Pattyn7-Aug-07 2:18 
GeneralRe: Referencing exe project Pin
MAW307-Aug-07 9:33
MAW307-Aug-07 9:33 
QuestionInterface blues Pin
seanwright6-Aug-07 15:28
seanwright6-Aug-07 15:28 

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.