J
JV
This is too weird. You're going to love this one.
I just ran across the most bizarre DotNet "feature" with the String.Split()
method. You are supposed to pass it an array of characters to tell it what
separators to split the string on. if it finds any of those characters, it
treats that as a separator.
Well, in VB.NET you can turn off option strict if you want to write
non-typesafe code (*bleh!*). This allows you to specify a string of
characters instead of a character array, and it treats the entire string as
a separator. Kind of handy, but I can find no way to do that in a typesafe
language (you'd have to write your own function to split the string).
I just ran across the most bizarre DotNet "feature" with the String.Split()
method. You are supposed to pass it an array of characters to tell it what
separators to split the string on. if it finds any of those characters, it
treats that as a separator.
Well, in VB.NET you can turn off option strict if you want to write
non-typesafe code (*bleh!*). This allows you to specify a string of
characters instead of a character array, and it treats the entire string as
a separator. Kind of handy, but I can find no way to do that in a typesafe
language (you'd have to write your own function to split the string).