Click here to Skip to main content
16,007,126 members
Home / Discussions / C#
   

C#

 
Generalfirebird database Vs MSDE engine Pin
ppp0016-Feb-05 22:08
ppp0016-Feb-05 22:08 
GeneralRe: firebird database Vs MSDE engine Pin
Judah Gabriel Himango7-Feb-05 4:18
sponsorJudah Gabriel Himango7-Feb-05 4:18 
Generalretrieve QueryString Value Pin
Adnan Siddiqi6-Feb-05 21:58
Adnan Siddiqi6-Feb-05 21:58 
GeneralRe: retrieve QueryString Value Pin
Heath Stewart7-Feb-05 9:57
protectorHeath Stewart7-Feb-05 9:57 
GeneralBitArray to integer Pin
Md Saleem Navalur6-Feb-05 21:34
Md Saleem Navalur6-Feb-05 21:34 
GeneralRe: BitArray to integer Pin
leppie6-Feb-05 22:37
leppie6-Feb-05 22:37 
GeneralC# function calling mechanism Pin
Siddhartha Ghosh6-Feb-05 21:23
Siddhartha Ghosh6-Feb-05 21:23 
GeneralRe: C# function calling mechanism Pin
Arjan Einbu7-Feb-05 0:28
Arjan Einbu7-Feb-05 0:28 
In the first method:
static void Upper1( string strParam )
{
	strParam = strParam.ToUpper ();
}
strParam is a copy of the reference to a string you pass in. So any modifications you do to strParam in this method gets done to this copy. This copy will not be visible outside its scope. (I'm guessing this is what you expected it to be.)

In the second method:
static void Upper2( TestClass tc )
{
	tc.str = tc.str.ToUpper ();
}
tc is a copy of the reference to the object you pass in. It is only the reference that is beeing copied (so the reference points at the same single object that was passed in.) Then you alter stuff in that object. This is done to the actual tc object you pass in.
GeneralRe: C# function calling mechanism Pin
Siddhartha Ghosh7-Feb-05 0:48
Siddhartha Ghosh7-Feb-05 0:48 
GeneralRe: C# function calling mechanism Pin
J4amieC7-Feb-05 1:08
J4amieC7-Feb-05 1:08 
GeneralRe: C# function calling mechanism Pin
Siddhartha Ghosh7-Feb-05 17:34
Siddhartha Ghosh7-Feb-05 17:34 
GeneralRe: C# function calling mechanism Pin
S. Senthil Kumar7-Feb-05 18:38
S. Senthil Kumar7-Feb-05 18:38 
GeneralRe: C# function calling mechanism Pin
Siddhartha Ghosh8-Feb-05 3:06
Siddhartha Ghosh8-Feb-05 3:06 
GeneralRe: C# function calling mechanism Pin
S. Senthil Kumar8-Feb-05 8:54
S. Senthil Kumar8-Feb-05 8:54 
GeneralRe: C# function calling mechanism Pin
Siddhartha Ghosh8-Feb-05 17:49
Siddhartha Ghosh8-Feb-05 17:49 
GeneralRe: C# function calling mechanism Pin
S. Senthil Kumar8-Feb-05 18:09
S. Senthil Kumar8-Feb-05 18:09 
GeneralRe: C# function calling mechanism Pin
Siddhartha Ghosh10-Feb-05 19:18
Siddhartha Ghosh10-Feb-05 19:18 
GeneralVertical Progress Bar Pin
mitreviper6-Feb-05 20:56
mitreviper6-Feb-05 20:56 
GeneralRe: Vertical Progress Bar Pin
Stefan Troschuetz6-Feb-05 23:22
Stefan Troschuetz6-Feb-05 23:22 
GeneralMDI in C#.net Pin
Anonymous6-Feb-05 20:29
Anonymous6-Feb-05 20:29 
GeneralRe: MDI in C#.net Pin
SimonS7-Feb-05 0:07
SimonS7-Feb-05 0:07 
Questionhow to deactivate the keyboard? Pin
ektoras6-Feb-05 19:35
ektoras6-Feb-05 19:35 
AnswerRe: how to deactivate the keyboard? Pin
Heath Stewart7-Feb-05 9:48
protectorHeath Stewart7-Feb-05 9:48 
GeneralNumericUpDown: ValueChanged event not fired Pin
Lizzy6-Feb-05 19:33
Lizzy6-Feb-05 19:33 
GeneralRe: NumericUpDown: ValueChanged event not fired Pin
Heath Stewart7-Feb-05 9:52
protectorHeath Stewart7-Feb-05 9:52 

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.