JanaGanaMana
Register
Login
casting,as,is
Object class
Garbage collection
Lazy constructors
Dependency property
IEnumerable ,IEnumerator
// with as you need to do null check
visual rect = r as Visual;
if (rect == null)
Console.WriteLine("Sorry");
if (emp is SalesPerson)
{
...
}
if (emp is Manager)
{
.......
}