Click here to Skip to main content
15,909,030 members
Home / Discussions / C#
   

C#

 
GeneralRe: or || operator on strings? [modified] Pin
PIEBALDconsult30-Nov-07 10:09
mvePIEBALDconsult30-Nov-07 10:09 
GeneralRe: or || operator on strings? Pin
Alaric_30-Nov-07 13:52
professionalAlaric_30-Nov-07 13:52 
AnswerRe: or || operator on strings? Pin
PIEBALDconsult1-Dec-07 18:15
mvePIEBALDconsult1-Dec-07 18:15 
QuestionOverloading + operator Pin
GreekTreat29-Nov-07 7:56
GreekTreat29-Nov-07 7:56 
AnswerRe: Overloading + operator Pin
Ennis Ray Lynch, Jr.29-Nov-07 7:59
Ennis Ray Lynch, Jr.29-Nov-07 7:59 
GeneralRe: Overloading + operator Pin
GreekTreat29-Nov-07 8:06
GreekTreat29-Nov-07 8:06 
GeneralRe: Overloading + operator Pin
PIEBALDconsult29-Nov-07 8:21
mvePIEBALDconsult29-Nov-07 8:21 
GeneralRe: Overloading + operator Pin
Luc Pattyn29-Nov-07 8:28
sitebuilderLuc Pattyn29-Nov-07 8:28 
AFAIK you can't do what you want, since Array class isn't yours and probably sealed.

If you insist on using the + operator I am afraid the only thing you can do is come up
with an entirely new class (myStringCollection) and implement all the properties, methods
and operators you need. Such class obviously could contain an array, an ArrayList or a
List<string> to hold the actual data.

If the + operator is not mandatory, have a look at the StringCollection class, it knows
how to accept and add string arrays.

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets


GeneralRe: Overloading + operator Pin
PIEBALDconsult29-Nov-07 14:29
mvePIEBALDconsult29-Nov-07 14:29 
GeneralRe: Overloading + operator Pin
Luc Pattyn29-Nov-07 14:38
sitebuilderLuc Pattyn29-Nov-07 14:38 
GeneralRe: Overloading + operator Pin
PIEBALDconsult29-Nov-07 15:02
mvePIEBALDconsult29-Nov-07 15:02 
GeneralRe: Overloading + operator Pin
Luc Pattyn29-Nov-07 15:25
sitebuilderLuc Pattyn29-Nov-07 15:25 
GeneralRe: Overloading + operator Pin
PIEBALDconsult29-Nov-07 17:49
mvePIEBALDconsult29-Nov-07 17:49 
GeneralRe: Overloading + operator Pin
Luc Pattyn29-Nov-07 23:32
sitebuilderLuc Pattyn29-Nov-07 23:32 
GeneralRe: Overloading + operator Pin
PIEBALDconsult30-Nov-07 3:50
mvePIEBALDconsult30-Nov-07 3:50 
GeneralRe: Overloading + operator Pin
Luc Pattyn30-Nov-07 4:56
sitebuilderLuc Pattyn30-Nov-07 4:56 
GeneralRe: Overloading + operator Pin
PIEBALDconsult1-Dec-07 17:40
mvePIEBALDconsult1-Dec-07 17:40 
GeneralRe: Overloading + operator Pin
PIEBALDconsult30-Nov-07 4:28
mvePIEBALDconsult30-Nov-07 4:28 
GeneralRe: Overloading + operator Pin
Luc Pattyn30-Nov-07 4:47
sitebuilderLuc Pattyn30-Nov-07 4:47 
QuestionError-Object reference not set to an instance of an object Pin
T4AMD29-Nov-07 7:30
T4AMD29-Nov-07 7:30 
AnswerRe: Error-Object reference not set to an instance of an object Pin
Alaric_29-Nov-07 8:19
professionalAlaric_29-Nov-07 8:19 
QuestionRe: Error-Object reference not set to an instance of an object Pin
T4AMD29-Nov-07 8:33
T4AMD29-Nov-07 8:33 
AnswerRe: Error-Object reference not set to an instance of an object Pin
Luc Pattyn29-Nov-07 8:46
sitebuilderLuc Pattyn29-Nov-07 8:46 
GeneralRe: Error-Object reference not set to an instance of an object Pin
T4AMD29-Nov-07 8:55
T4AMD29-Nov-07 8:55 
Questionremoving comments from xml strings Pin
AndrusM29-Nov-07 7:29
AndrusM29-Nov-07 7:29 

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.