Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. System.Monitor.Enter/Exit usage [modified]

System.Monitor.Enter/Exit usage [modified]

Scheduled Pinned Locked Moved The Lounge
questioncsharpvisual-studiocomtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    S Senthil Kumar
    wrote on last edited by
    #1

    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 and Exit 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

    M 1 Reply Last reply
    0
    • S S Senthil Kumar

      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 and Exit 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

      M Offline
      M Offline
      Muammar
      wrote on last edited by
      #2

      1 and 2:^)


      All generalizations are wrong, including this one! (\ /) (O.o) (><)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups