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

C#

 
AnswerRe: show time country wise Pin
Saksida Bojan14-Aug-09 5:17
Saksida Bojan14-Aug-09 5:17 
AnswerRe: show time country wise Pin
0x3c014-Aug-09 5:37
0x3c014-Aug-09 5:37 
Questionstring versus String ! Pin
_Q12_14-Aug-09 5:01
_Q12_14-Aug-09 5:01 
AnswerRe: string versus String ! Pin
0x3c014-Aug-09 5:07
0x3c014-Aug-09 5:07 
AnswerRe: string versus String ! Pin
Saksida Bojan14-Aug-09 5:09
Saksida Bojan14-Aug-09 5:09 
GeneralRe: string versus String ! Pin
humayunlalzad14-Aug-09 5:24
humayunlalzad14-Aug-09 5:24 
GeneralRe: string versus String ! Pin
Saksida Bojan14-Aug-09 8:14
Saksida Bojan14-Aug-09 8:14 
GeneralRe: string versus String ! Pin
Luc Pattyn14-Aug-09 8:16
sitebuilderLuc Pattyn14-Aug-09 8:16 
Hi,

I suggest you run something similar to this:
string str="aha";
log(str);
func1(str);
log(str);
func2(ref str);
log(str);

private void func1(String str) {str = "Changed"; log("1 "+str);}
private void func2(ref String str) {str = "Changed";log("2 "+str); }
private void log(string s) {Console.WriteLine(s);}


and think about why it behaves the way it does.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

AnswerRe: string versus String ! Pin
Scott Dorman14-Aug-09 5:10
professionalScott Dorman14-Aug-09 5:10 
GeneralRe: string versus String ! Pin
_Q12_14-Aug-09 5:25
_Q12_14-Aug-09 5:25 
GeneralRe: string versus String ! Pin
Scott Dorman14-Aug-09 5:27
professionalScott Dorman14-Aug-09 5:27 
GeneralRe: string versus String ! Pin
PIEBALDconsult14-Aug-09 7:58
mvePIEBALDconsult14-Aug-09 7:58 
GeneralRe: string versus String ! Pin
Luc Pattyn14-Aug-09 8:20
sitebuilderLuc Pattyn14-Aug-09 8:20 
GeneralRe: string versus String ! Pin
PIEBALDconsult14-Aug-09 8:41
mvePIEBALDconsult14-Aug-09 8:41 
GeneralRe: string versus String ! Pin
Luc Pattyn14-Aug-09 10:22
sitebuilderLuc Pattyn14-Aug-09 10:22 
GeneralRe: string versus String ! Pin
harold aptroot14-Aug-09 10:30
harold aptroot14-Aug-09 10:30 
GeneralRe: string versus String ! Pin
Luc Pattyn14-Aug-09 10:42
sitebuilderLuc Pattyn14-Aug-09 10:42 
GeneralRe: string versus String ! Pin
PIEBALDconsult14-Aug-09 10:51
mvePIEBALDconsult14-Aug-09 10:51 
AnswerRe: string versus String ! Pin
_Q12_14-Aug-09 5:44
_Q12_14-Aug-09 5:44 
AnswerRe: string versus String ! Pin
murktinez14-Aug-09 8:06
murktinez14-Aug-09 8:06 
QuestionHow can i detect if a path is valid. Pin
Saksida Bojan14-Aug-09 3:46
Saksida Bojan14-Aug-09 3:46 
AnswerRe: How can i detect if a path is valid. Pin
picazo14-Aug-09 4:03
picazo14-Aug-09 4:03 
AnswerRe: How can i detect if a path is valid. Pin
Luc Pattyn14-Aug-09 4:08
sitebuilderLuc Pattyn14-Aug-09 4:08 
GeneralRe: How can i detect if a path is valid. Pin
Saksida Bojan14-Aug-09 5:05
Saksida Bojan14-Aug-09 5:05 
QuestionC# and JavaScript. [modified] Pin
Evgeni5714-Aug-09 3:34
Evgeni5714-Aug-09 3:34 

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.