Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void ForEach(this SPWebCollection webs,
- Action<SPWeb> action,
- Func<SPWeb, bool> predicate)
- {
- foreach (SPWeb web in webs.Where(predicate))
- {
- action(web);
- web.Dispose();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement