عرض المشاركات من مايو, 2020

How to mock HttpClient-C#

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 …

Configure Custom Default Page in ASP.NET Core Razor Page

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 …

Serilog ASP.NET Core Configuration

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…

.NET/C# Interview Questions - SET 2

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 …

Avoiding Language Keyword Conflicts-C#

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…

.NET/C# Interview Questions - SET 1

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…

C# string Reverse extension method

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…

Command Design Pattern

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…

Adapter pattern C# real world example

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 …

Preview selected image using HTML5

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 …

How to invoke REST endpoint from Visual Studio Code

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…

What is the use of LINQ Zip operator

As per the MSDN 'Linq` is Language-Integrated Query (LINQ) is the name for a set of technologies based on the integration of query capabilities directly into the C# language. LINQ provides a lot of operator out of the bo…

تحميل المزيد من المشاركات
لم يتم العثور على أي نتائج