Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.Page.Validate();
- if (!this.Page.IsValid())
- {
- // breakpoint here
- }
- pages.Where((x) =>
- {
- if (x.IsValid)
- {
- Debugger.Break();
- return true;
- }
- return false;
- });
- [Conditional("DEBUG")]
- static bool BreakpointPredicate(YourItemType x)
- {
- if (x.IsValid)
- {
- Debugger.Break()
- return true;
- }
- return false;
- }
- pages.Where(BreakPointPredicate);
Add Comment
Please, Sign In to add comment