Now let us how C# compile works for peoperties |
Step :1 Open IDE and choose console application1 and save
|
Modify the codes using System; |
Let us debug
|
How compiler flows? The cursor enters the code at Main()
|
step 2 contd. At this stage a blank console page will open.
|
An obeject is created when curosr moves to next line (PressF11). Note
the follwoings
|
step : press F11, cursor goes and checks all the members declared with
the class team
. |
At this point, since property is a reference type, the variable when
accessed the compiler check the address of the variable and if you look at
the command window at this point you will note that "get" property was read
by the compiler.
|
Similar way when int m_uniform variable was instantiated, compiler checks the get or read property. |
even when the compiler access constructor, the cursor checks with
get/read property of the class.
|
Traversing through constructors
console windows |
After this point you may have to use break point at read line function, becuase while debugging during Console.ReadLine focus is shifted from console to coding pane of visual C#, and link |
However if you press F% from C# express studio, it runs different from command line |