Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing collection property
Message
From
08/09/2008 15:50:56
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345879
Message ID:
01345894
Views:
8
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform