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 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -