📅 Week 41
Getting The System Directory In C# & .NET
[C#, .NET]
After installing an operating system on your device, the various files, libraries and executables are stored in what is called the system directory.
What Is The Largest Duration A TimeSpan Can Store In C# & .NET
[C#, .NET]
While writing yesterday’s post, “Getting The System Uptime In C# & .NET”, I learned that the Environment.TickCount64 returns a 64-bit
integer.
Getting The System Uptime In C# & .NET
[C#, .NET]
Recently, I was wondering how long it had been since I had last restarted my machine, better known as uptime.
Writing To The Windows Event Log In C# & .NET
[C#, .NET, Windows, EventLog, Logging]
On the Windows platform, the canonical place to write logs is the Windows Event Log.
Getting the Operating System Platform in PowerShell
[PowerShell]
A PowerShell script I am working on requires different behavior across operating system platforms.
Getting The Name Of A File Without Its Extension In C# & .NET
[C#, .NET]
A common (and slightly annoying) problem you will run into is when you need to get the name of a file, but without its extension. Perhaps you want to generate a new file name. Or you are using the original file name for a different context, e.g., you are compressing it, and want to name the compressed file with a different extension.
📅 Week 40
How To Unit Test A Class With Options In C# & .NET
[C#, .NET]
One of the abilities offered by the .NET platform is a flexible and robust configuration and settings management engine.
Why Doesn't PowerShell Use < and > For Less Than & Greater Than?
[PowerShell]
I was recently reviewing some PowerShell code with a mentee.
Getting A Constant Value From A .NET Executable in PowerShell
[PowerShell, .NET]
PowerShell is an excellent, cross-platform scripting solution that you can use to automate various tasks in Windows, Linux, and Unix environments. The fact that it has full access to the entire .NET ecosystem is the icing on the cake.
Getting The Current Path Of An Executing PowerShell Script
[PowerShell, .NET]
PowerShell is an excellent, cross-platform scripting solution that you can use to automate various tasks in Windows, Linux, and Unix environments. The fact that it has full access to the entire .NET ecosystem is the icing on the cake.
Getting The Time In Different Timezones In C# & .NET
[C#, .NET]
One of the realities of modern living in 2025 is that the world is truly a melting pot, and people are distributed all over it.
📅 Week 40
Converting Between Calendars AKA October MOSTLY Has 31 Days
[C#, .NET, Dates]
Quick, how many days does October have?
Correctly Getting The Number Of Days In A Month In C# & .NET
[C#, .NET, Dates]
Our last post, “Getting The Number Of Days In A Month In C# & .NET”, looked at two ways to get the number of days in a particular month.
📅 Week 39
Getting The Number Of Days In A Month In C# & .NET
[C#, .NET, Dates]
While idly going through the documentation, or the intellisense of your favourite IDE, you will almost certainly always stumble across a method or property you did not know existed.
Generating Random Booleans In C# & .NET
[C#, .NET]
Over the past week, we have been looking at some of the challenges of generating random values of the various integral types from bytes
to unsigned 64 bit integers
.
📅 Archives ...