عرض المشاركات من مايو, ٢٠٢٠
What is Mock? Mocking is a process when writing the unit test case for the unit with an external dependency like a Network request or database call. The purpose of the mocking is to isolate the external dependency and focus …
Razor is an ASP.NET programming syntax used to create dynamic web pages with the C# or VB.NET programming languages. Razor was in development in June 2010 and was released for Microsoft Visual Studio 2010 in January 2011 …
Table of contents What is SeriLog What is Sink in serilog What are the enrich in serilog? How to configure Serilog in .NET Core How to add enricher in Serilog? How to add sink in Serilog? Message template How to override …
Difference between Overloading and Overriding ? What is CLR (Common Language Runtime? What is CTS (Common Type System) What are the different types of Assemblies? What will be the output of following code snippet void …
If you really want to use an identifier that clashes with a keyword, you can qualify it with the @ prefix. For instance: class class { . . . } // illegal class @ class { . . . } // legal The @ the symbol d…
How do I calculate an MD5 hash from a string ? What is the difference between const and static read-only What is a static constructor Does C# support multiple inheritances? What is the difference between System. Stri…
This post is a simple, fun example. In this post, I will show you a neat trick about LINQ. You have to reverse a given sentence using LINQ. For example Input I love LINQ Output LINQ love I There are several ways to solv…
What is a design pattern Design pattern is occurring solution to the problem that occurs during software design. In this article, we are going to discuss the Command design pattern. Decorator Design pattern The comma…
What is Design Pattern? A design pattern is a general recurring solution to a commonly occurring problem in software design. In this article, I will explain to you what is the adapter design pattern and when to use it in …
Before HTML 5 showing the preview of the image was a very expensive operation because the website makes a service call to get the image. Which puts extra load on the server. But after the release of HTML5, it’s becoming very …
VS Code (Visual Studio Code) is a free editor from Microsoft, which is very popular nowadays. Visual studio code supports almost all language from code compilation, IntelliSense to debugging. The best part of the VS Code is e…
LINQ (Language integrated query) is a compelling feature of c#. By using LINQ, we can simplify the code very easily in fewer lines of code. In this example, I will show you how to convert an array of string to the collection…