Re: Fastest way to convert an object to a string

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks,

BitConverter.ToString() has no support to pass an object.

Thanks,

"Michael Letterle" <michael.letterle@xxxxxxxxx> wrote in message
news:1164829568.607597.140050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I can't tell you if it's faster, but you may want to check out
BitConverter.ToString()...

On Nov 29, 2:41 pm, "Buddy Home" <BuddyH...@xxxxxxxx> wrote:
Thanks for the reply,

First may I say that the object is converted to a byte array via
BinaryStream using serialization. I use the MemoryStream to store the
data.

I'm already aware how StringBuilders works and know that using the String
object to manupulate the string is expensive.

My main question is that does anyone know a better way to do this.




.



Relevant Pages

  • Re: Serializing an Array
    ... I need to then encode the serialized string and then ... As long as the contents of the array are serializable... ...
    (microsoft.public.dotnet.languages.vb)
  • Serializing XML document
    ... Public Class xmlData ... Public Namesas String ... But the serialization process never load the Namesarray. ...
    (microsoft.public.dotnet.xml)
  • Re: Unable to pass Dictionary class instance over Webservice
    ... XML Serialization is a type of Serialization. ... Serialization are not XML Serialization, ... a stream or an array of bytes. ... serializes the data as a stream or string, ...
    (microsoft.public.dotnet.framework)
  • Re: Unable to pass Dictionary class instance over Webservice
    ... XML Serialization is a type of Serialization. ... Serialization are not XML Serialization, ... a stream or an array of bytes. ... serializes the data as a stream or string, ...
    (microsoft.public.dotnet.framework)
  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)