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

C#

 
GeneralRe: or || operator on strings? [modified] Pin
Luc Pattyn30-Nov-07 5:56
sitebuilderLuc Pattyn30-Nov-07 5:56 
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 
Well it derives from System.Array doesn't it?

By the way, I implement that method as:

C#
public static string[]
Concat
(
    string[] first
,
    string[] second
)
{
    string[] result = null ;

    if ( ( first != null ) && ( second != null ) &&
         ( first.Rank == 1 ) && ( second.Rank == 1 ) )
    {
        result = new string [ first.Length + second.Length ] ;

        first.CopyTo  ( result , 0 ) ;
        second.CopyTo ( result , first.Length ) ;
    }
    else
    {
        throw new System.Exception ( "Can only concatenate one-dimensional arrays" ) ;
    }

    return ( result ) ;
}

GeneralRe: Overloading + operator Pin
Luc Pattyn29-Nov-07 8:28
sitebuilderLuc Pattyn29-Nov-07 8:28 
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 

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.