A gem.
-
Did I mention that this was an argument to string.Split() which is defined to take (params char[])? They could have simply typed:
';'
It would have been a gem if the code was something like this:
"argument1;argument2;argument3".Split(";".ToString());
:-D
I have no smart signature yet...
-
";".ToCharArray()
'nuf said.This is what I have seen years ago.
a.ToString().ToString();
Yeah... he was just tired... couldn't prevent a prank by Intellisence.
-
This is what I have seen years ago.
a.ToString().ToString();
Yeah... he was just tired... couldn't prevent a prank by Intellisence.
The one I loathe is
string s = "Hello";
string x = s.ToString();"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
This is what I have seen years ago.
a.ToString().ToString();
Yeah... he was just tired... couldn't prevent a prank by Intellisence.
-
Did I mention that this was an argument to string.Split() which is defined to take (params char[])? They could have simply typed:
';'
Derek Viljoen wrote:
Did I mention that this was an argument to string.Split() which is defined to take (params char[])?
That was only introduced in .NET 3.5 IIRC. I have written similar code ages back too.
xacc.ide
IronScheme - 1.0 RC 1 - out now!
((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition -
Derek Viljoen wrote:
Did I mention that this was an argument to string.Split() which is defined to take (params char[])?
That was only introduced in .NET 3.5 IIRC. I have written similar code ages back too.
xacc.ide
IronScheme - 1.0 RC 1 - out now!
((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth EditionSame here - and until today I still would have had I not seen your post and tried using a single char parameter. Thanks
-
Derek Viljoen wrote:
Did I mention that this was an argument to string.Split() which is defined to take (params char[])?
That was only introduced in .NET 3.5 IIRC. I have written similar code ages back too.
xacc.ide
IronScheme - 1.0 RC 1 - out now!
((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition -
harold aptroot wrote:
No, see here: http://msdn.microsoft.com/en-us/library/b873y76a(VS.80).aspx\[^\]
Well, I can't say, the fuckin page is stuck on C++ :( PS: IIRC C++ does not support .NET
params
. Update: IE to the rescue. I see it was there (in 2.0), maybe I am thinking of something else...xacc.ide
IronScheme - 1.0 RC 1 - out now!
((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition -
This is what I have seen years ago.
a.ToString().ToString();
Yeah... he was just tired... couldn't prevent a prank by Intellisence.
-
Sorry. I deleted it because it could be a mere slander.
-
harold aptroot wrote:
No, see here: http://msdn.microsoft.com/en-us/library/b873y76a(VS.80).aspx\[^\]
Well, I can't say, the fuckin page is stuck on C++ :( PS: IIRC C++ does not support .NET
params
. Update: IE to the rescue. I see it was there (in 2.0), maybe I am thinking of something else...xacc.ide
IronScheme - 1.0 RC 1 - out now!
((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition -
Sorry. I deleted it because it could be a mere slander.
-
";".ToCharArray()
'nuf said.