A Plea to the SharePoint Team

June 21, 2006

Why oh why don't your collection classes have a Contains() method across the board?  I can't tell you how dirty I feel every time I have to loop through a collection to find out if a particular Field or Group or List already exists.  It just feels wrong and it clutters up my code.  😦

Honestly though, if I could have a single request granted, it would be that all collection classes in the SharePoint object model implement a Contains method. 


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: