Top C# Tools

The Ultimate List of C# Tools: IDEs, Profilers, Automation Tools, and More

Angela Stringfellow Developer Tips, Tricks & Resources Leave a Comment

C# is a widely used programming language in enterprises, especially those that are heavily Microsoft-dependent. If you build apps using C#, you most likely use Visual Studio and have explored some of its extensions to supercharge your development. However, this list of tools might just change the way you write C# code for good. Best tools for C# programming in …

The Best C# Tutorials

Learn C#: Tutorials for Beginners, Intermediate, and Advanced Programmers

Angela Stringfellow Developer Tips, Tricks & Resources Leave a Comment

If you’re a beginner developer or someone looking to learn a new language, C# is a great choice for a number of reasons. Unlike C++, for instance, C# offers automatic memory management, and it also offers solid Type Safety compared to JavaScript and node.js. C# has robust base class libraries; the .NET framework includes hundreds of libraries for working with …

What is C# Reflection?

How C# Reflection Works With Code Examples

Stackify Developer Tips, Tricks & Resources Leave a Comment

Reflection is when managed code can read its own metadata to find assemblies. Essentially, it allows code to inspect other code within the same system. To illustrate, Java’s static typing system isn’t designed to support the “doSomething” method unless the object conforms to a known interface. But with reflection, your code can view the object and find out if it …

What are OOP Concepts in C#?

OOP Concepts in C#: Code Examples and How to Create a Class

Stackify Developer Tips, Tricks & Resources Leave a Comment

Object oriented programming (OOP) is a programming structure where programs are organized around objects as opposed to action and logic. This is essentially a design philosophy that uses a different set of programming languages such as C#. Understanding OOP concepts can help make decisions about how you should design an application and what language to use. Everything in OOP is placed …

Learn how to support and show performance

Understanding & Profiling C# Async Await Tasks

Matt Watson Developer Tips, Tricks & Resources, Stackify Product & Company Updates Leave a Comment

Microsoft and the .NET community have made asynchronous programming very easy with their implementation of async await in C#. The latest versions of ASP.NET heavily utilize it to improve performance. Many performance monitoring and profiling tools struggle to support and visualize the performance of asynchronous C# code. Stackify’s Prefix & Retrace products both have excellent support for applications using C# async await. …

Unhandled Exceptions

How to Catch All Exceptions in C# & Find All Application Errors

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

Exception handling is a critical component of every software application. The last thing you want is your users to see weird errors, or even worse, your application keeps crashing. In this article, we are going to discuss how to find and catch all exceptions in C# applications. .NET provides several different ways to catch exceptions and view unhandled exceptions. Topics …

What's a C# Throw Exception?

How to Throw C# Exceptions Like a Major League Pro: Examples, Best Practices, and Everything You Need to Know

Stackify Developer Tips, Tricks & Resources Leave a Comment

Practically everyone who has ever used a web page or an app has encountered an exception at one point or another, but they probably didn’t realize what it was. Exceptions are pretty common ways to handle unexpected inputs but are they always the right way to handle such problems? In this post, we’ll take a closer look at C# exceptions, …

How to Generate C# Random Numbers, Pseudo vs Secure Random Numbers

Matt Watson Developer Tips, Tricks & Resources, Live Queue Leave a Comment

Random numbers are used in a wide variety of software applications. Depending on what you are using random numbers for, you will need to decide which type to use. For a music jukebox, the accuracy is not very critical. For something like a lottery or slot machine, the random number generator must be extremely accurate.  Read on to learn more …

C# Exception Handling Best Practices

Matt Watson Developer Tips, Tricks & Resources, Live Queue Leave a Comment

Welcome to Stackify’s guide to C# exception handling. In this article we cover the following topics: Basics about C# Exceptions, including examples Common .NET Exceptions How to Create Your Own Custom C# Exception Types How to Find Hidden .NET Exceptions C# Exception Logging Best Practices What is an Exception? Exceptions are a type of error that occurs during the execution …

Dependency Injection C#

What is Dependency Injection C#? How It Works, Types of Dependency Injections in C#, and More

Stackify Developer Tips, Tricks & Resources Leave a Comment

In a recent blog post, we talked about how C# and .NET are the next big thing. If you’re planning to code in C#, dependency injection is just one of many things you should know. Read on for a primer on dependency injection in C# so you can use it to your advantage in your next project. Definition of Dependency …

C# Queue, Methods, and Operations

What Is a C# Queue? How It Works, and the Benefits and Challenges of Working with C# Queues

Stackify Developer Tips, Tricks & Resources Leave a Comment

At Stackify, we recently blogged about best practices for C# logging. Today, let’s take a look at another useful capability, the C# Queue. A Definition of C# Queue The C# queue is a FIFO queue collection class in the System.Collection namespace. Storing elements in FIFO style (First In, First Out), the C# queue contains elements in precisely the order they were …


How to Use LoggerFactory and Microsoft.Extensions.Logging for .NET Core Logging With C#

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

If you have used .NET Core, you have probably battled with the new built-in .NET Core LoggerFactory which is in Microsoft.Extensions.Logging. It has created a lot of confusion around logging with ASP.NET Core. At Stackify, we have logging integrations for log4net, NLog, Serilog, and our direct API. We have a lot of experience with building logging appenders and libraries to work with various …

Unit Test Frameworks Best Practices

Unit Test Frameworks for C#: The Pros and Cons of the Top 3

Erik Dietrich Developer Tips, Tricks & Resources Leave a Comment

If you enjoy the subject of human cognitive biases, you should check out the curse of knowledge.  When dealing with others, we tend to assume they know what we know.  And we do this when no justification for the assumption exists. Do you fancy a more concrete example?  Take a new job and count how many people bombard you with company jargon …

Visual Studio versus Rider

Ricardo Peres Developer Tips, Tricks & Resources Leave a Comment

In the beginning there was Visual Studio. For many years, it was essentially the only tool that offered a comprehensive IDE with useful functionality that could be used for enterprise-level .NET development. Other tools existed, of course, but they were generally no match for Visual Studio. In recent years, this landscape has somewhat changed: we now have Visual Studio Code, MonoDevelop, …

An entertaining comparison of Java vs. .NET

The Java vs .NET Comparison (Explained with Cats)

Elena Ruchko Developer Tips, Tricks & Resources Leave a Comment

Comparing technologies is always fun. Not that we want to start yet another programming language war, but it is really quite interesting to take a fresh look at a familiar technology and put it into perspective. Plus, it’s quite common for developers and business owners to be faced with the choice between two or more options, be it a fresh …

Guide to Optimizing .NET Applications to Improve Performance

Maximize the Performance of Your .NET Application With This Optimization Guide

Jared Nance Developer Tips, Tricks & Resources Leave a Comment

Introduction It’s Friday afternoon, the majority of the development staff has already packed up and headed home for the weekend, but you remain to see the latest hotfix through to production. To your dismay, immediately after deployment, queues start backing up and you begin to get alerts from your monitoring system. Something has been broken and all evidence points to …