Showing posts from March, 2022

How to Sort a Dictionary by Key in .NET/C#

In this post, we are going to explore different ways to make a C# sorted dictionary. But first, let's review the dictionary characteristics and then learn how to get this dictionary sorted by key. C# - Dictionary<TKey, TValue> In C#, the Dictionary<TKey, TValue> is a generic collection that stores key-value pairs in no particular order. Here are the main characteristics of the Dictionary in C# Dictionary<TKey, TValue> stores key-value pairs. Comes under System.Collections.Generic namespace. Implements IDictionary<TKey,…

C# Method to Get the Full Name of a Namespace

In this post, I'm sharing a dotnet/c# code to get the full name of a namespace and convert it to a string. Assuming we have a class called "Order" and we need to get its namespace as a string. Here are few options on how to do it in c#: Option 1 var classType = typeof (OrderClass); var n = classType.Namespace; Console.WriteLine( "Namespace: {0}." , n); Option 2 You can create a method in class "Order" to return its namespace. You can add this method to a base class so you don't have to repeat the same c…

Managing Azure Blob Storage With All CRUD Operations for ASP.NET and C#

In this article, we are going to learn about all the operations that we may need to use in order to manage files in Azure Blob Storage using the .NET framework. Here are the operations that we will explore: Upload: a .NET function to upload files to Azure blob storage CopyTo: a .NET function to copy file in Azure blob storage Move: a .NET function to move a file from one folder to another in Azure blob storage MoveFolder: a .NET function to move folder from one location to another in Azure blob storage Delete: a .NET function to delete file fr…

What Is the Difference Between Software Design and Software Architecture?

It doesn’t take a huge amount of knowledge and skill to get a program working. Kids in high school do it all the time. Young men and women in college start billion dollar businesses based on scrabbling together a few lines coding. Thousands of junior programmers around the world slog through massive requirements documents held in huge issue tracking systems to get their systems to “work” by the sheer brute force of will. The code they produce may not be pretty; but it works. It works because getting something to work—once—just isn’t that hard.…

Soft Skills - Stop Fearing Failure

Fall down seven times, get up eight.—Japanese Proverb You could have all the skills in life that should make you successful, but if you lack one important skill, perseverance, it will all be worthless, because at the first sign of trouble, you’ll give up—and we all will face some amount of trouble in our lives. On the other hand, you could be severely undereducated about your profession and have horrible social skills and financial knowledge, but if you’re incredibly persistent, it’s my belief you’ll eventually find your way. As a software de…

Difference Between Object Cache and Output Cache in SharePoint Server

Planning caching in SharePoint is an important matter which have direct impact on the performance of the SharePoint sites. SharePoint Server provides a disk-based binary large object (BLOB) cache that reduces database load and increases browser performance for users. This post describes the difference between object cache and output cache along with a quick overview on BLOB caching in SharePoint. The Page Output Cache in SharePoint The page output cache is an in-memory cache that saves rendered ASPX pages. Using Output cache improves perform…

Load More
That is All