Click here to Skip to main content
15,910,872 members
Home / Discussions / C#
   

C#

 
Questioncollection or array Pin
kenwen29-Nov-07 8:59
kenwen29-Nov-07 8:59 
AnswerRe: collection or array Pin
led mike29-Nov-07 9:05
led mike29-Nov-07 9:05 
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 
use the .Equals() method

if(currentFd.Name.ToUpper().Equals("SHAPE") || currentFd.Name.ToUpper().Equals("FID") || currentFd.Name.ToUpper().Equals("OID"))
{
//do whatever
}

...only use cascading if statements if you are really pissed off at your grader Wink | ;)

-- modified at 14:39 Thursday 29th November, 2007

"I need build Skynet. Plz send code"

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 
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 

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.