Ben Bowen's Blog
• Home / Blog •
• About •
• Subscribe •
Software Engineering Tags
oop / api design
Software Engineering posts tagged with '.NET'
Topics relating to the .NET ecosystem or BCL/FCL libraries.
Postmortems - Tale of Two Casts
• Thursday 1st June 2017
About a year ago I came across a bug that took me a while to get to the bottom of. Look at the following code and see if you can predict the output:...
Three Garbage Examples
• Friday 8th April 2016
C# (and any language that runs on the CLR) is a garbage-collected language, meaning that objects that have no references to them remaining will have their memory reclaimed at some point in the future. Creating too much garbage (by creating too many ephemeral objects or over-using the
keyword) can induce the garbage-collector too frequently, slowing down the entire application....
• Monday 18th January 2016
Not very many C# programmers will ever need to do much with P/Invoke (Microsoft's technology for interoperation with legacy or native codebases), but for those of us who do, I've amassed a few little tips that aren't always included in the various tutorials found on the 'net....