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.
C# 8 Concerns
// Elucidation on some concerns with upcoming new features planned for C# 8
• Saturday 15th September 2018
In the following post I'm going to talk about two concerns I have with features planned for C# 8. Beforehand though, I just want to point out a couple of things: Also for previous subscribers, I'm sorry for the huge hiatus in blogging. I've been busy with work and all my spare time has been going in to patching my game. That's finally done however so hopefully normal service will be resumed. :)...
Postmortems - Tale of Two Casts
// A deep-dive in to a rare difference between the way the CLR and C# handle a given cast
• 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
// Three examples and explanations of situations that can create unnecessary garbage in .NET4/C#5
• 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....
// Assorted accrued tips on using P/Invoke in C#
• 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....