If you use the Step Into in the following program. Yellow line is jump into the statement Console.WriteLine(base.GetType().Name); within the two curly brackets without going through private void k().
What is the reason for that? Problem is highlighted.
using System;
namespace contest
{
class Program
{
static void Main(string[] args)
{
B b = new B();
A a = new A();
Console.Read();
}
}
class A
{
public A()
{
k();
}
private void k()
{
Console.WriteLine(base.GetType().Name);
}
}
class B : A { }
}