c# - Having a copy of an object instead of a locked one -


is there way of, instead of locking object, show temporary copy of it, 1 accessing it?

wrap code uses object in case critical resource, transactionscope , set isolationlevel snapshot.

that way, trying access same object should see value before editing object, until transaction complete.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -