Date: 01/11/06 (C Sharp) Keywords: no keywords Let's say we have method like this: void DoIt()
{
lock (this) { DoItSafe(); }
}Is there an attribute/keyword that, when applied to method DoIt, make it lock the instance without using lock inside? Like this:[MagicAttributeOrKeyword]
void DoIt() // works the same as the first snippet
{
DoItSafe();
}
|