📰 Assuming Visual Studio News
Page 4 - Assuming Visual Studio News Today
Fast, Ad-Free News Updates
Stay updated with breaking news from Assuming Visual Studio. Real-time updates on events, politics, business and more.
November 4, 2021
Strings are immutable types in .NET. Whenever you modify a String object in .NET, a new String object is created in memory to hold the new data. By contrast, a StringBuilder object represents a mutable string of characters, and expands its memory allocation dynamically as the size of the string grows. The String and StringBuilder […]
June 10, 2021
Take advantage of aspect-oriented programming using PostSharp to validate method parameters in C#.
June 9, 2021
Create a .NET Core console application project in Visual Studio First off, let’s create a .NET Core console application project in Visual Studio. Assuming Visual Studio 2019 is installed in your system, follow the steps outlined below to create a new .NET Core console application project in Visual Studio. Launch the Visual Studio IDE. Click on “Create new project.” In the “Create new project” window, select “Console App (.NET Core)” from the list of templates displayed. Click Next...
June 1, 2021
Take advantage of closures in C# — including anonymous methods, delegates, and lambda expressions — to make your code robust, efficient, readable, and easier to maintain.
April 27, 2021
| When to use String vs. StringBuilder in .NET Core Take advantage of these best practices when working with strings in .NET Core for the optimal performance of your applications. Two popular classes that you will use frequently when working with strings in .NET Core are the String and StringBuilder classes. You should be aware of the best practices when using both these classes to build applications that minimize allocations and are highly performant. This article discusses the best p...
April 20, 2021
| How to use SortedDictionary, SortedList, and SortedSet in C# Take advantage of the SortedDictionary, SortedList, and SortedSet classes in C# to store key-value pairs and sort them based on keys. Thinkstock SortedDictionary, SortedList, and SortedSet are collection classes that store key-value pairs and can be sorted based on the keys. A SortedSet is a collection that is maintained in sorted order. A SortedList is a collection that lets you retrieve the keys and/or valu...
March 15, 2021
Take advantage of the new relational and logical patterns in C# 9.0 to make your code more readable, maintainable, and efficient.
March 8, 2021
Take advantage of read-only generic interfaces such as IReadOnlyList, IReadOnlyDictionary, and IReadOnlyCollection to prevent modifications to collections in your .NET Core applications.
February 15, 2021
Take advantage of record types in C# 9 to build immutable types and thread-safe objects.