Howdy all,

In VB6 I wrote a function to split a string by a character, which ignored quotes.

For example, the Split functions in VB6 and C# would split the following string:

He said, "Hello, my name is blahblah!", to everyone.

VB6 and C# will split this like so, using a comma as the split character:

1) He said
2) "Hello
3) my name is blahblah!"
4) to everyone.

What my function did was split it like so:

1) He said
2) "Hello, my name is blahblah!"
3) to everyone.

I'm having trouble porting it to C#. Obviously, it returned a string array, but in VB I had the comfort of using ReDim. Can anyone write me a function to split by character but ignore quotes? My brain just doesn't want to work today :/

Cheers for any help,

chem