This lock is completely useless.
- You're locking on a writable field, so you may lock on different values at different times.
- You're locking on a publicly visible value, so callers can introduce race conditions if they also lock on it.
- Reference-type (pointer-sized) field writes are atomic anyway, so there is no risk here.
EncryptedType/EncryptedType/EncryptedTypeAttribute.cs
Line 40 in 36d96ec
This lock is completely useless.