I have a basic question regarding type casting.
class A { }
class B : A { }
B b = new B();
A a = (A)b;
In the above code whether type casting will occur?
interface IA
{
void process();
}
class B : IA
{
#region IA Members
void IA.process()
{
throw new NotImplementedException();
}
#endregion
public void process() { }
}
B b = new B();
b.process();
((IA)b).process();
In the above code whether type casting will occur?