Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
7 votes
4 answers
2k views

The need for Explicit Type Conversion in C#

Consider the following code: DerivedClass drbObj = (DerivedClass)obj; Here obj is of type Object and this is reasonable since Object is the base type of every Class in C#. Here, since the type of ...
Shamim Hafiz - MSFT's user avatar