|
-
July 21st, 2008, 02:45 AM
#1
Casting...
Hi there,
I'm in the throws of learning C#, but I am currently trying to figure out why I would use casting with reference types. From what I understand, casting is used to convert one type to another (please correct me if I am wrong), and I understand this concept when using primitive data types. What I am struggling to understand is why you would use casting when dealing with reference types.
I've checked various sites, but none of them offer a clear understanding of why you would cast one object to another.
Am I missing something fundamental to OOP?
Any help would be gratefully received.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|