mercredi 26 août 2015

C# lock single line(if statement)

Is this code locking only on if statement, or for both lines of code?

lock (LockObject)
    if (instance == null)
        instance = Instance();

Aucun commentaire:

Enregistrer un commentaire