Garbage collection is a key component of many modern programming languages, including C#. It’s even hard to imagine what programming would look like in C#, and other modern languages like Java, Ruby, and many others, without this tool. Despite being a valuable asset that makes a better programming experience, garbage collection can still give you a hard time, specifically with …
The Evolution of C#: What’s Changed and What’s Ahead
Recently Microsoft made several changes to the C# language. Some of those may even seem quite strange – definitely not your daddy’s C# anymore The truth is, even though most of this is just “syntactic sugar” – has no equivalent in IL, in the same way that LINQ didn’t require any changes in IL too, the language is changing very …
How to Convert C# String to Int
The .NET Framework provides a couple built in ways to convert a C# string to int, or several other numeric datatypes. It is important that you do so in a way that does not throw potential exceptions. Unsafe Ways to Convert a C# String to Int You can use a couple built in methods, as shown below, to convert a …
What Is a C# Queue? How It Works, and the Benefits and Challenges of Working with C# Queues
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 …
Why .NET Core and C# are the Next Big Thing
I have been playing with .NET Core for over a year now and have been very impressed with it.  Since our company creates developer tools that also work with .NET Core, I feel like we are more plugged into what is going on. We talk to customers every day who are already running .NET Core apps in production. .NET Core is …
Unit Test Frameworks for C#: The Pros and Cons of the Top 3
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 …