Musings
Public · Protected · Private
casting,as,is
-
2012-06-12 11:39// 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) { ....... }
This blog is frozen. No new comments or edits allowed.