Jon Skeet [C# MVP] wrote:
> Frans Bouma [C# MVP] <(E-Mail Removed)> wrote:
>
>>Cor Ligthert wrote:
>>
>>>Little correction,
>>>
>>>I am a little bit ashamed of this one
>>>
>>>\\\
>>>string str = "bla1 bla2 hello bla4";
>>>string[] stra;
>>>stra = str.Split(' ');
>>
>> this doesn't work, you have to pass in an array of char:
>>stra = str.Split(new char[]{' '});
>
>
> Yes it does work, because the Split parameter if declared with the
> "params" modifier. Try it
Aw sh*t, indeed...

Sorry, Cor, you're right, I was wrong.
Notes to self:
bool _doNotPostToUseNet=
((_amountGlassesChampagne>0)||(!_triedInSnippetCompilerFirst));
FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET:
http://www.llblgen.com
My .NET blog:
http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------