Re: Delimited String to Array

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: Delimited String to Array
    ... C# is already a complicated language ... The guy said that he was moving from delphi to C# and was working with ... string. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DLL with string params callable via D4 and VB
    ... I can't get beyond Delphi ... >> Is there any guidance you could give in regards to passing string ... > - use Longint for integer types on the Delphi side, Long on the VBA side, ... > Arrays are another problem data type. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Thinking Clearly
    ... often business rules change more rapidly than the technology used to ... C++ came along later we looked again since homebuilt string classes would do ... for a *very* long time MSBasic had a very stable core language. ... but if you Delphi code behaved like Delphi code ...
    (borland.public.delphi.non-technical)
  • Re: array of labels or array of buttons
    ... >>finally got a project that I can do in Delphi. ... >>time you cut and past one it asks if you want to make this an array. ... > draw the buttons in an OnDrawCell event handler of the stringgrid like ... ... > In this case I would use the Objects array of the string grid to store a value ...
    (alt.comp.lang.borland-delphi)
  • Re: Basics
    ... controls from Turbo Delphi and I managed to get things basically working ... via executing a text query and the dbgrid printing what I needed. ... I'm in position where I need to retrieve a long string and UU-hex-convert ... it into a image to the user - DBGrids help me not. ...
    (borland.public.delphi.database.ado)