String.Join and String.Split parameter mnemonic

Each time I click on C # String.Join and String.Split parameter types. The problem is that it String.Splitaccepts an array of characters params char[], but String.Joinaccepts string.

Does anyone have a good mnemonics that can help me remember what is going on, and so I don’t need to fix it every time I perform line manipulation?

[EDIT, as everyone seems to be confused why I don't have IDE support]

I use LinqPad like this when I use it most of the time:

String.Join("\n", @"LongRawString
WithPlentyOfLines
UsuallyGeneratedBySomeoneElse
OrProducedBySqlServerForExample".Split('\n').Select(x => 
    {
        x = x.Trim();

        //create line of code, like:
        return "int longRawStringIdx = reader.GetOrdinal(\"LongRawString\")";
    }))

IDE LinqPad , . , , 12- , .

, , Split string Join string ( Split).

+3
1

: , , . , , , Join , .

Intellisense:)

+5

All Articles