Correct, Count is Get only, it also appears he is writing in VB.Net and
not C# - but we don't know if what little he provided is actual code,
pseudo-code, or what...

I was simply suggesting that he check to see if he is actually comparing
or inadvertently setting.

Vitor:

Could you provide some of the surrounding code?

Thanks,
Greg 

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Frans Bouma
Sent: Monday, February 13, 2006 09:06
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: .NET IS CRAZY ...

> If you are writing in C# then I would make sure you are comparing not 
> setting:
>
>         if( lista.Count == 0) { /* ... */ }
>
> Instead of:
>
>         if( lista.Count = 0) { /* ... */ }

        this won't compile in C#

                FB

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to