This repository contains some code samples from my blog posts. I sometimes upload code to separate repos (like for C# / .NET and WinForms), or to Gist or JsFiddle for shorter snippets.
The list below has a link to each blog post, followed by the relevant code for that post.
- Can I compare files using VS Code? (blog, code)
- Cool markdown tricks for GitHub (blog, code)
- Why doesn't VS 2022 show my WinForms UI at design time? (blog, code)
- What is a Git alias? (blog, code)
- An Extension Method to Pass a Column Name to SqlDataReader.GetFieldValue (blog, code)
- How do I convert my code from C# to VB.NET (or from VB.NET to C#)? (blog, code)
- How to generate and verify TOTP 2FA codes (in C#) (blog, code)
- Obsolete Attribute on a Class is Ignored When an Interface is Involved (blog, code)
- Using an application config file with a .NET Standard app and NUnit 3 (blog, code)
- What is mocking a dependency? (blog, code)
- What is the NUnit constraint model and should you use it? (blog, code)