Nested BypassPropertyChecks doesn't work as expected

Nested BypassPropertyChecks doesn't work as expected

Old forum URL: forums.lhotka.net/forums/t/6620.aspx


jureleskovec posted on Tuesday, March 17, 2009

Oi!

I ran on issue with nested "using(BypassPropertyChecks)" blocks. The inner one always ends the property check bypass. I suppose this pattern should employ something like the 'refrence count' mechanism.

It first glance it might occur this behavior is not important, but imagine the case with business object having part of its fetch method in the base class (in the form of same method call from the DataPortal_Fetch), which we do quite a lot.

-- Jure

RockfordLhotka replied on Tuesday, March 17, 2009

Added to wish list.

http://www.lhotka.net/cslabugs/edit_bug.aspx?id=372

nelis replied on Thursday, March 10, 2011

Have been debugging a colleague's code for quite some time to find that he also used nested BypassPropertyChecks. So I'd also like to see this fixed. Shouldn't take too much time...

RockfordLhotka replied on Thursday, March 10, 2011

fwiw, I raised the priority of that item, so it is something that'll be on the list for a future release.

Copyright (c) Marimer LLC