Is this code locking only on if statement, or for both lines of code?
if
lock (LockObject) if (instance == null) instance = Instance();
Aucun commentaire:
Enregistrer un commentaire