Quantcast
Channel: {CodingBlocks}.NET » boxing
Browsing latest articles
Browse All 5 View Live

Image may be NSFW.
Clik here to view.

Boxing and Unboxing in C#: 7 Deadly Sins

You might have had the anti boxing and unboxing rhetoric pounded into your head. In the .NET world they’re often mentioned as an unfortunate side-effect of backwards compatibility. A reminder of life...

View Article



Avoiding boxing in String and Console methods

Unlike Java, C# has a unified type system. Both reference types AND values inherit from system.object which means that you can have a method that takes in both value and reference types by their common...

View Article

Image may be NSFW.
Clik here to view.

Episode 2 – Boxing and Unboxing in .NET

This episode is all about boxing and unboxing. We discuss memory management, the pros (yes, there are a few!) and cons of boxing/unboxing, some of the weird side effects and how to you can avoid it...

View Article

Steps to Understanding Boxing and Unboxing

I could start by telling you that wrapping a value type in an Object is boxing.  There, we’re done right?  I mean, you now know what that means, yeah?!  So, you could probably then deduce that unboxing...

View Article

What You Don’t Know About Interfaces Can Hurt Your Application

Recently, we’ve discussed the adverse effects that boxing and unboxing can have on the performance of your application. Furthermore, during episode two, we mentioned the unintentional use of boxing...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images