Click here to Skip to main content
15,906,341 members
Home / Discussions / C#
   

C#

 
GeneralRe: Changing the X and Y properties of a point Pin
Meysam Mahfouzi6-Feb-04 17:56
Meysam Mahfouzi6-Feb-04 17:56 
GeneralRe: Changing the X and Y properties of a point Pin
Heath Stewart7-Feb-04 3:20
protectorHeath Stewart7-Feb-04 3:20 
GeneralRe: Changing the X and Y properties of a point Pin
Meysam Mahfouzi7-Feb-04 17:18
Meysam Mahfouzi7-Feb-04 17:18 
GeneralRe: Changing the X and Y properties of a point Pin
Meysam Mahfouzi7-Feb-04 18:45
Meysam Mahfouzi7-Feb-04 18:45 
GeneralRe: Changing the X and Y properties of a point Pin
Heath Stewart7-Feb-04 18:46
protectorHeath Stewart7-Feb-04 18:46 
Questionhow to play media file from Internet Pin
don7cry5-Feb-04 14:28
don7cry5-Feb-04 14:28 
AnswerRe: how to play media file from Internet Pin
Heath Stewart5-Feb-04 18:45
protectorHeath Stewart5-Feb-04 18:45 
GeneralForm Control Without Title Bar Pin
Dilys5-Feb-04 13:57
Dilys5-Feb-04 13:57 
GeneralRe: Form Control Without Title Bar Pin
John Kuhn5-Feb-04 15:28
John Kuhn5-Feb-04 15:28 
GeneralRe: Form Control Without Title Bar Pin
Heath Stewart5-Feb-04 18:24
protectorHeath Stewart5-Feb-04 18:24 
GeneralRe: Form Control Without Title Bar Pin
John Kuhn5-Feb-04 19:19
John Kuhn5-Feb-04 19:19 
GeneralFire DoubleClick event in listview Pin
pahluwalia5-Feb-04 12:36
pahluwalia5-Feb-04 12:36 
GeneralRe: Fire DoubleClick event in listview Pin
John Kuhn5-Feb-04 12:49
John Kuhn5-Feb-04 12:49 
GeneralRe: Fire DoubleClick event in listview Pin
pahluwalia6-Feb-04 12:15
pahluwalia6-Feb-04 12:15 
GeneralRe: Fire DoubleClick event in listview Pin
John Kuhn9-Feb-04 12:10
John Kuhn9-Feb-04 12:10 
GeneralFinding a simple asp.net forum Pin
Andrlage5-Feb-04 10:56
Andrlage5-Feb-04 10:56 
GeneralRe: Finding a simple asp.net forum Pin
Mike Ellison5-Feb-04 14:14
Mike Ellison5-Feb-04 14:14 
GeneralRe: Finding a simple asp.net forum Pin
Andrlage6-Feb-04 4:09
Andrlage6-Feb-04 4:09 
GeneralRe: Finding a simple asp.net forum Pin
Mike Ellison6-Feb-04 6:55
Mike Ellison6-Feb-04 6:55 
QuestionRecording from moden using TAPI? Pin
visiontec5-Feb-04 9:45
visiontec5-Feb-04 9:45 
AnswerRe: Recording from moden using TAPI? Pin
Ray Cassick5-Feb-04 9:48
Ray Cassick5-Feb-04 9:48 
GeneralBest way to copy byte[] to string Pin
illsorted5-Feb-04 8:59
illsorted5-Feb-04 8:59 
Hey all,

I'm using a POP3 client library (from www.lumisoft.ee) that returns messages as an array of bytes (byte[]).

What I'm looking for is an efficient way to change this array into a string so I can perform Regex functions on it.

I have the following working code, but I don't think it will be very speedy or efficient when processing a large number of messages (or large messages):

<br />
private string messageToString(byte[] message) {<br />
   StringBuilder sb = new StringBuilder();<br />
   foreach (byte b in message)<br />
      sb.Append((char) b);<br />
   return sb.ToString();<br />
}<br />


Any suggestions on a better way to do this?

Thanks for your time!
GeneralRe: Best way to copy byte[] to string Pin
Kentamanos5-Feb-04 9:25
Kentamanos5-Feb-04 9:25 
GeneralRe: Best way to copy byte[] to string Pin
illsorted5-Feb-04 9:33
illsorted5-Feb-04 9:33 
Generalporting quke2 to c# Pin
Peter Reiter5-Feb-04 8:26
Peter Reiter5-Feb-04 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.