Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing collection property
Message
De
08/09/2008 15:50:56
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01345879
Message ID:
01345894
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
>>I'm wondering if this is the correct way or there is a better and simpler way.

Your code is correct and simple as for me.

I would write something like this:

foreach (SqlWhereBuilderCondition condition in this.SqlWhereBuilderPeople.Conditions)
{
if (condition.FieldId.Equals("IsActive"))
{
// Remove IsActive part in case we selected that condition - very rare case
RemoveIsActivePart = true;
}
}



>>BTW, are you using this class in your project as well?

No, I just downloaded it from codeproject now to see source code.
Maybe it will be useful in some project.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform