Re: C# When to use boxing?
Hey!
Just one more thing: sometimes boxing can be confused with polimorphism, both concepts share the same sintax usually, so if you create a class that implements two interfaces, iupdateable and ipositionable, you can use this class like its own, like an iupdateable or like an ipositionable item. In this case, you use the same sintax: ipositionable pos = (ipositionable) myPolimorphicObject1;
Hope it helps.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector