Click here to Skip to main content
16,005,169 members
Home / Discussions / C#
   

C#

 
GeneralRe: collection or array Pin
kenwen29-Nov-07 9:16
kenwen29-Nov-07 9:16 
AnswerRe: collection or array Pin
PIEBALDconsult29-Nov-07 9:57
mvePIEBALDconsult29-Nov-07 9:57 
AnswerRe: collection or array Pin
John_Adams30-Nov-07 1:02
John_Adams30-Nov-07 1:02 
GeneralRe: collection or array Pin
kenwen4-Dec-07 1:16
kenwen4-Dec-07 1:16 
Questionor || operator on strings? Pin
h0st1le29-Nov-07 8:19
h0st1le29-Nov-07 8:19 
AnswerRe: or || operator on strings? Pin
Alaric_29-Nov-07 8:21
professionalAlaric_29-Nov-07 8:21 
GeneralRe: or || operator on strings? Pin
PIEBALDconsult29-Nov-07 8:31
mvePIEBALDconsult29-Nov-07 8:31 
GeneralRe: or || operator on strings? Pin
Alaric_29-Nov-07 8:45
professionalAlaric_29-Nov-07 8:45 
...let me rephrase....(in my opinion) == shouldn't be applied to strings in that way because strings are not actually value types....if you were checking it against null, then "str==null" would be acceptable because you would be comparing whether the value of the reference was equal to null or not. I did not intend to say that "==" and "!=" were causing his problems

...if you want to test whether str is equal to "some string value",

str = "some literal string value";

if(str == "some literal string value"){}    // is improper
if(str.Equals("some literal string value")){} //is proper


the value of the reference to str IS NOT EQUAL to "some literal string value"
but the value stored by str IS EQUAL to "some literal string value"



"I need build Skynet. Plz send code"

GeneralRe: or || operator on strings? Pin
h0st1le29-Nov-07 8:51
h0st1le29-Nov-07 8:51 
GeneralRe: or || operator on strings? Pin
PIEBALDconsult29-Nov-07 10:01
mvePIEBALDconsult29-Nov-07 10:01 
GeneralRe: or || operator on strings? Pin
Luc Pattyn29-Nov-07 11:14
sitebuilderLuc Pattyn29-Nov-07 11:14 
GeneralRe: or || operator on strings? Pin
Anthony Mushrow29-Nov-07 12:41
professionalAnthony Mushrow29-Nov-07 12:41 
GeneralRe: or || operator on strings? Pin
Luc Pattyn29-Nov-07 13:17
sitebuilderLuc Pattyn29-Nov-07 13:17 
GeneralRe: or || operator on strings? Pin
h0st1le29-Nov-07 8:32
h0st1le29-Nov-07 8:32 
GeneralRe: or || operator on strings? Pin
Ennis Ray Lynch, Jr.29-Nov-07 8:34
Ennis Ray Lynch, Jr.29-Nov-07 8:34 
GeneralRe: or || operator on strings? Pin
h0st1le29-Nov-07 8:46
h0st1le29-Nov-07 8:46 
GeneralRe: or || operator on strings? Pin
Luc Pattyn29-Nov-07 9:05
sitebuilderLuc Pattyn29-Nov-07 9:05 
GeneralRe: or || operator on strings? Pin
h0st1le29-Nov-07 9:09
h0st1le29-Nov-07 9:09 
GeneralRe: or || operator on strings? Pin
Alaric_30-Nov-07 3:03
professionalAlaric_30-Nov-07 3:03 
GeneralUse Pin
Ennis Ray Lynch, Jr.1-Dec-07 17:19
Ennis Ray Lynch, Jr.1-Dec-07 17:19 
AnswerRe: or || operator on strings? Pin
PIEBALDconsult29-Nov-07 8:36
mvePIEBALDconsult29-Nov-07 8:36 
GeneralRe: or || operator on strings? Pin
h0st1le29-Nov-07 8:50
h0st1le29-Nov-07 8:50 
GeneralRe: or || operator on strings? Pin
Alaric_29-Nov-07 9:01
professionalAlaric_29-Nov-07 9:01 
GeneralRe: or || operator on strings? Pin
h0st1le29-Nov-07 9:07
h0st1le29-Nov-07 9:07 
GeneralRe: or || operator on strings? Pin
PIEBALDconsult29-Nov-07 10:07
mvePIEBALDconsult29-Nov-07 10:07 

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.