Working with Variable: Storing Any Type of Object
Learn how to use C#'s object and dynamic types to store mixed data, how casting is required to access object members.
We'll cover the following
A special type named object
can store any type of data, but its flexibility comes at the cost of messier code and possibly poor performance. Because of those two reasons, we should avoid it whenever possible.
Get hands-on with 1400+ tech skills courses.