Oli Trenouth

  • About Me
  • Blog

C#

Dictionary definition of word nothing
C#

Null Checking in C#

Just a quick post today on the subject of null. Checking for null in the bane of many programming languages. And while there are some clever techniques and design patterns that can help minimise the need to do this, it’s inevitable that you’ll end up needing to check for null. Read more…

By Oli Trenouth, 2 months2 February 2022 ago
computer coding screengrab
C#

WPF: Drag Parent Window Behaviour

Just a quick post this time: I had a need to be able to reposition a WPF window when I click and dragged on a particular UIElement. The aim was to recreate the behaviour of clicking and dragging on a standard Windows title bar (in my case, I was implementing Read more…

By Oli Trenouth, 7 years29 April 2015 ago
C#

C#: Convert the current time to FFXIV’s Eorzea Time

I was intrigued by a post on Stack Overflow today where a developer was asking how to convert the current time to Eorzea Time, a fictional timebase used in Final Fantasy XIV’s persistent game world. I’ve never played FFXIV – and probably never will, but I was intrigued by the Read more…

By Oli Trenouth, 7 years14 January 2015 ago
C#

C# async-await: Common Deadlock Scenario

If you’re new to the async and await keywords in C# and .NET, then it’s likely you will eventually stumble across this deadlock scenario, which is difficult to debug if you’re not familiar with how async and await work under the hood. Consider this example asynchronous method that fetches some Read more…

By Oli Trenouth, 7 years12 January 2015 ago
C#

MVVMLight SimpleIoC: Design-time Error

If you’re using the MVVMLight toolkit within your WPF project, you may have come across this error message if you’re using the SimpleIoC container to help provide design-time data when working in Blend for Visual Studio: Typically within your ViewModelLocator, you would have some code like this: Where the highlighted line Read more…

By Oli Trenouth, 7 years12 January 2015 ago
Recent Posts
  • Null Checking in C# 2 February 2022
  • The Blog Returns 1 January 2022
  • WPF: Drag Parent Window Behaviour 29 April 2015
  • C#: Convert the current time to FFXIV’s Eorzea Time 14 January 2015
  • C# async-await: Common Deadlock Scenario 12 January 2015

  • About Me
  • Blog
© 2022 Oli Trenouth