Re: Low .NET Socket performence!!!

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

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 10:34:18 +0100

Nadav <Nadav@discussions.microsoft.com> wrote:
> Same code for the 2003 version.

<snip>

Hmm. Well, I can reproduce the problem. I'm not entirely sure why it
happens, to be honest. I'll have a think and try to investigate it
further.

Btw, you do realise that there's no point in doing

if (0==x)
type comparisons in C# rather than the (IMO) more readable
if (x==0)

I assume this is a hang-over from C/C++ coding where it avoids
accidental typos of if (x=0) - but that doesn't compile in C# anyway,
as the type of an if statement has to be boolean.

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too