I'm trying to create a generic method that accepts a delegate. The sole purpose of the method is to ensure whatever code block, the delegate, you pass to it, is only accessed by one thread at a time. Is there a clean pattern to achieve this?
Aucun commentaire:
Enregistrer un commentaire