System.Monitor.Enter/Exit usage [modified]
-
No, not a programming question :) I have been thinking about writing a code analyzer and I want to know what kind of objects (known at compile time vs determined at runtime) developers usually pass to the
Enter
andExit
methods. 1. Class member variables(fields) 2. Call a function and use the returned value 3. Anything else The most common usage I've seen is (1), just thought I'd confirm that.Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro
-- modified at 2:55 Saturday 13th January, 2007
-
No, not a programming question :) I have been thinking about writing a code analyzer and I want to know what kind of objects (known at compile time vs determined at runtime) developers usually pass to the
Enter
andExit
methods. 1. Class member variables(fields) 2. Call a function and use the returned value 3. Anything else The most common usage I've seen is (1), just thought I'd confirm that.Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro
-- modified at 2:55 Saturday 13th January, 2007