Re: Delimited String to Array
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Fri, 11 Aug 2006 22:01:39 +0100
AMDRIT <amdrit@xxxxxxxxxxx> wrote:
Bah, C# is already a complicated language
The guy said that he was moving from delphi to C# and was working with
string. Perhaps he could also glean additional information from the errata
that I through in there.
Running both lines in code analysis neither way violated a condition. Does
my way cause more cpu cycles once it is compiled, or does your way actually
do the same thing once compiled? Is boxing wrong to do?
I'll go back to my side of the fence now and play in my VB sandbox.
Well, both ways create a new array each time. However, yours calls
char.Parse unnecessarily.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: Delimited String to Array
- From: Fabio
- Re: Delimited String to Array
- References:
- Delimited String to Array
- From: Kyro
- Re: Delimited String to Array
- From: AMDRIT
- Re: Delimited String to Array
- From: Fabio
- Re: Delimited String to Array
- From: AMDRIT
- Delimited String to Array
- Prev by Date: Re: Delimited String to Array
- Next by Date: Re: Dumb if question
- Previous by thread: Re: Delimited String to Array
- Next by thread: Re: Delimited String to Array
- Index(es):
Relevant Pages
|