Say my base method looks like:
public int GetCount() {.....}
Now I inherit from GetCount’s class, and do:
public new int GetCount()
{
int count = base.GetCount();
count += 1;
return count;
}
Will calling base.GetCount() cause a return before my increment? (that seems to be what I am experiencing)
No it will not. Calling base.Count is no different with respect to returning from the method than any other method call.
In a normal C# method (excluding iterators and abnormal process termination), there are only 3 ways to leave a method