Quick takes from developers at work.
Tips, fixes and short write-ups on what developers ran into this week, in their own words.
From this blog, you will learn how to do pattern matching on ReadOnlySpan in C#.

In this blog, you will learn about Dependency Injection in C#.

This blog has the answer for the given question, Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

In this blog, you will learn about IEnumerable in C# With Example.

In this blog, I will show, how to mask a string with the help of regular expressions in C#.

We will understand the anti-pattern reason for a singleton class.

This is the simple mathematical operation program demonstrating how multiple inheritance can be achieved in C# using Interface Concept.

We will give an array input and find the third largest and print it.

In this blog, we will discuss about the non-generic collection in c#.

In this blog, we will discuss about the generic collection in c#.

How to Convert Encrypt or Decrypt password using c# with asp.net

Take an integer input and then draw the pattern according to it.

Get expected using Pythagorean Triples Using c#. Mathematics - Number Theory

In this blog, you will learn how to retrieve nested object value in .NET.

Dependency Injection (DI) is a software design pattern that allows a class to receive its dependencies (i.e. objects that it depends on) through its constructor or methods, rather than creating them directly. This makes it easier to test the class and to change the implementation of the dependencies without affecting the class that uses them. In C#, dependency injection is typically implemented using an Inversion of Control (IoC) container, which is a library that manages the creation and injection of dependencies into classes. The most popular IoC containers for C# are Autofac, Castle Windsor, and Microsoft's own Dependency Injection (DI) framework, which is built into the ASP.NET Core framework. Here is an example of how dependency injection can be used in C#: interface ILogger { void Log(string message); } class ConsoleLogger : ILogger { public void Log(string message) { Console.WriteLine(message); } } class MyClass { private readonly ILogger _logger; public MyClass(ILogger logger) { _logger = logger; } public void DoSomething() { _logger.Log("Doing something..."); } } In this example, MyClass depends on an ILogger interface to perform logging. Instead of creating an instance of ConsoleLogger directly, MyClass receives an ILogger instance through its constructor. This allows the application to easily change the implementation of the ILogger interface without affecting the MyClass. This also allows for easy testing, for instance by passing a mock logger object in the constructor and testing how MyClass behaves. An IoC container would be used to create and wire up these objects for you, so you don't have to new up the objects and pass them around manually.

Are you a Software Engineering Student? Ask for a ReSharper licensing to learn to code like an expert.

In this blog, I am going to explain how to create all permutations and combinations for a given list of objects.

In this blog, you will learn what is a tuple and Value tuple in C#.

You can compare two lists by using SequenceEquals Method provide by System.LINQ

C# 11 is coming, so we're going to explore its new features in detail. You may find these new features pretty curious even though there are not that many of them. Today let's take a closer look at the generic math support, raw string literals, the required modifier and many more

In this blog, we will study how we can find first non-repeating character in a string.

In this blog, we will study how we can find the first repeated character in a string.

In this blog, we will study how we can find the repeated first character in the given string.

This blog describes and demonstrates the stacks using C#. In C#, a stack is a data structure that allows you to store and retrieve elements in a Last-In-First-Out (LIFO) manner.
Everything on C#, not only its blogs: the C# page →
Write a blog post and earn +250 SHARP when it is approved.
Write a blog