Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
Questionchange selectedItem color in listBox Pin
Nafiseh Salmani12-Aug-06 1:30
Nafiseh Salmani12-Aug-06 1:30 
AnswerRe: change selectedItem color in listBox Pin
Guffa12-Aug-06 2:38
Guffa12-Aug-06 2:38 
QuestionHow to use Windows Service to call a Windows Form Pin
IamFengDong12-Aug-06 1:21
IamFengDong12-Aug-06 1:21 
Questioncapturing data from modem Pin
mehrdadc4812-Aug-06 0:29
mehrdadc4812-Aug-06 0:29 
AnswerRe: capturing data from modem Pin
Divyang Mithaiwala12-Aug-06 2:14
Divyang Mithaiwala12-Aug-06 2:14 
GeneralRe: capturing data from modem Pin
stancrm12-Aug-06 4:21
stancrm12-Aug-06 4:21 
QuestionHow do you pass by reference in c#? Pin
honeyman_can12-Aug-06 0:21
honeyman_can12-Aug-06 0:21 
AnswerRe: How do you pass by reference in c#? Pin
Guffa12-Aug-06 1:48
Guffa12-Aug-06 1:48 
Reference types (objects) are never copied when you use them in a call. It's always the reference to the object that is sent to the method.

If you use the ref keyword with a reference type, you will be sending a reference to the reference.

Parameters are always sent by value unless you specify the ref keyword. For reference types that means that the value of the referecne is passed to the method.

Example:

void Test(string a, ref string b) {
   a = "1";
   b = "2";
   Console.WriteLine("a: " + a);
   Console.WriteLine("b: " + b);
}

string x = "x";
string y = "y";
Console.WriteLine("x :" + x);
Console.WriteLine("y :" + y);
Test(x, ref y);
Console.WriteLine("x :" + x);
Console.WriteLine("y :" + y);

The output will be:

x: x<br />
y: y<br />
a: 1<br />
b: 2<br />
x: x<br />
y: 2



---
b { font-weight: normal; }

QuestionGenerate XML Documentation File(Help File) Pin
parvinder sehrawat12-Aug-06 0:19
parvinder sehrawat12-Aug-06 0:19 
Questionc# Pin
nsyogi12-Aug-06 0:01
nsyogi12-Aug-06 0:01 
AnswerRe: c# Pin
Colin Angus Mackay12-Aug-06 5:20
Colin Angus Mackay12-Aug-06 5:20 
QuestionCustomize MessageBox Pin
pranu_1311-Aug-06 23:14
pranu_1311-Aug-06 23:14 
QuestionRe: Customize MessageBox Pin
Filip van der Meeren11-Aug-06 23:17
Filip van der Meeren11-Aug-06 23:17 
QuestionDataTable internal index is corrupted ... Is exist an reason? Pin
priyasheth@mechsoftgroup.com11-Aug-06 22:55
priyasheth@mechsoftgroup.com11-Aug-06 22:55 
Questionplay mp3 in database Pin
chinajuanbob11-Aug-06 22:16
chinajuanbob11-Aug-06 22:16 
AnswerRe: play mp3 in database Pin
chinajuanbob12-Aug-06 0:04
chinajuanbob12-Aug-06 0:04 
AnswerRe: play mp3 in database Pin
eggsovereasy14-Aug-06 5:23
eggsovereasy14-Aug-06 5:23 
GeneralRe: play mp3 in database Pin
chinajuanbob14-Aug-06 5:41
chinajuanbob14-Aug-06 5:41 
QuestionUpdate form on return from other task Pin
Glen Harvy11-Aug-06 21:55
Glen Harvy11-Aug-06 21:55 
AnswerRe: Update form on return from other task Pin
Stefan Troschuetz11-Aug-06 23:49
Stefan Troschuetz11-Aug-06 23:49 
GeneralRe: Update form on return from other task Pin
Glen Harvy12-Aug-06 1:13
Glen Harvy12-Aug-06 1:13 
Questionsort and filter a simple database in access Pin
skyeddie11-Aug-06 20:02
skyeddie11-Aug-06 20:02 
AnswerRe: sort and filter a simple database in access Pin
Stanciu Vlad11-Aug-06 21:25
Stanciu Vlad11-Aug-06 21:25 
GeneralRe: sort and filter a simple database in access Pin
skyeddie11-Aug-06 21:36
skyeddie11-Aug-06 21:36 
QuestionInstalling COM with my C# application Pin
wasife11-Aug-06 18:58
wasife11-Aug-06 18:58 

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.