When does a property call happen?

I have confusion in some part of the code.

Inside the class, I have a property

Class A
{
  ClassB objB;

  public int TimedValue
  {
    objB.Timer;
  }
}

Inside classB I have

classB
{
 public int Timer
 {
  get
  {
   // get time value using some algorithm....
  }
 }
}

My confusion is that I put breakpoints inside the getters, but I don't see the program flow there and stop! Although I see that the object is created and populated by TimedValue when I look at it in debug mode inside the clock window. Am I losing something by properties?

EDIT: So ColinE led me through the right steps, except that I couldn't find an option there. Here is a screenshot of where, where it should have been, enter image description here

My screenshot

enter image description here I assume this is a VS error. In any case, I just published this so that someone from Team Team 2008 should have noted this :)

+3
source share
2 answers

, "". , :

Tools => Options => Debugging => General => Step over properties and operators
+2

, Time ( , ), Timer classB.

0

All Articles