Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
QuestionWeb service request does not reach IIS Pin
Ricardo Mendes18-Apr-06 6:22
Ricardo Mendes18-Apr-06 6:22 
QuestionDynamically loadning Menu Items Pin
sjpjs18-Apr-06 5:52
sjpjs18-Apr-06 5:52 
AnswerRe: Dynamically loadning Menu Items Pin
Robert Rohde18-Apr-06 6:03
Robert Rohde18-Apr-06 6:03 
GeneralRe: Dynamically loadning Menu Items Pin
sjpjs18-Apr-06 7:01
sjpjs18-Apr-06 7:01 
AnswerRe: Dynamically loadning Menu Items Pin
LongRange.Shooter18-Apr-06 10:12
LongRange.Shooter18-Apr-06 10:12 
AnswerRe: Dynamically loadning Menu Items Pin
vatzcar18-Apr-06 18:17
vatzcar18-Apr-06 18:17 
QuestionRe: Dynamically loadning Menu Items Pin
sjpjs18-Apr-06 23:09
sjpjs18-Apr-06 23:09 
AnswerRe: Dynamically loadning Menu Items Pin
vatzcar19-Apr-06 0:26
vatzcar19-Apr-06 0:26 
QuestionWebservice Pin
dj_jay_smith18-Apr-06 4:48
dj_jay_smith18-Apr-06 4:48 
QuestionWebservice Pin
dj_jay_smith18-Apr-06 4:48
dj_jay_smith18-Apr-06 4:48 
QuestionnsWebservice Pin
dj_jay_smith18-Apr-06 4:47
dj_jay_smith18-Apr-06 4:47 
AnswerRe: nsWebservice Pin
J4amieC18-Apr-06 5:07
J4amieC18-Apr-06 5:07 
GeneralRe: nsWebservice Pin
dj_jay_smith18-Apr-06 21:11
dj_jay_smith18-Apr-06 21:11 
QuestionC# and XML Question Pin
seschu0118-Apr-06 4:35
seschu0118-Apr-06 4:35 
AnswerRe: C# and XML Question Pin
Robert Rohde18-Apr-06 5:33
Robert Rohde18-Apr-06 5:33 
AnswerRe: C# and XML Question Pin
LongRange.Shooter18-Apr-06 10:20
LongRange.Shooter18-Apr-06 10:20 
Questionpassing array byval versus byref Pin
bnathvbdotnet18-Apr-06 4:08
bnathvbdotnet18-Apr-06 4:08 
AnswerRe: passing array byval versus byref Pin
Judah Gabriel Himango18-Apr-06 4:50
sponsorJudah Gabriel Himango18-Apr-06 4:50 
The default is to pass by value. If you want reference semantics, you can use the ref keyword.

Typically, the ref keyword (similar to the out keyword) is only used with value types (i.e. integer, double, float, etc.) For example:


// Pass a value type by value.
int i = 5;
Test(i);
Debug.WriteLine(i); // prints 5, because a copy is passed to the Test method

void Test(int param)
{
    param = 10;
}


// Pass a reference type by value.
string str = "hello";
Test(str);
Debug.WriteLine(str); // prints hello, because a copy of the reference to the "hello" string was passed to the Test method.

void Test(string param)
{
    param = "world";
}


// Pass a value type by reference
int i = 5;
Test(ref i);
Debug.WriteLine(ref i); // prints 10, because the reference to i was passed to the Test method

void Test(ref int param)
{
    param = 10;
}


// Pass a reference type by reference
string str = "hello";
Test(ref str);
Debug.WriteLine(str); // prints world, because the actual reference to str was passed to the Test method

void Test(ref string param)
{
   param = "world";
}


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: I luv teh choco
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


AnswerRe: passing array byval versus byref Pin
Robert Rohde18-Apr-06 5:23
Robert Rohde18-Apr-06 5:23 
AnswerRe: passing array byval versus byref Pin
Guffa18-Apr-06 6:02
Guffa18-Apr-06 6:02 
QuestionI/O Threading Pin
eric_tran18-Apr-06 3:59
eric_tran18-Apr-06 3:59 
AnswerRe: I/O Threading Pin
Judah Gabriel Himango18-Apr-06 4:52
sponsorJudah Gabriel Himango18-Apr-06 4:52 
AnswerRe: I/O Threading Pin
Robert Rohde18-Apr-06 5:43
Robert Rohde18-Apr-06 5:43 
GeneralRe: I/O Threading Pin
eric_tran19-Apr-06 0:31
eric_tran19-Apr-06 0:31 
GeneralRe: I/O Threading Pin
eric_tran19-Apr-06 1:50
eric_tran19-Apr-06 1:50 

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.