I'm still trying to match my deep and old knowledge with C / C ++ with my more superficial .Net knowledge. Today the time has come "how" (and implicitly "is" and cast) in C #.
My mental “how” model is that it is a QueryInterface or dynamic_cast (a dynamic_cast with a pointer argument, not a link, that is) for C #. My question is twofold:
- Is my comparison fair?
- What is the relative cost of "how" compared to
QueryInterface or dynamic_cast ?
c ++ casting c # type-inference
Johann Gerell
source share