C#
13 results found
-
Top 11 C# OOP interview questions and answers for Junior
OOP is a popular type of programming language.Microsoft also uses this for C#. So this knowledge becomes very important and this is the first thing when you start with C#. If you are a junior C# dev when you join an interview, I am sure you will have to answer many questions related to OOP. So I collected the top 11 C# interview questions and answers that I usually ask in the interview. Let's get started.
-
Could not load file or assembly System.Net.Http, Version=4.0.0.0 in .Net
Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
-
How to get first day and last day of previous month in C#?
How to get the first day and last day of the previous month in C#? I need to create a report for my application and I need to get all data from the last month.
-
Cannot implicitly convert type 'bool' to 'System.Threading.Tasks.Task<bool>' in C# Asp.Net Core
Throw error CS0029 Cannot implicitly convert type 'bool' to 'System.Threading.Tasks.Task' in C# Asp.Net Core 3.1.
-
What is the difference between String and StringBuilder in C#?
Can anybody explain to me What is the difference between string and StringBuilder in C#? what is the best practice to use them?
-
C# throw object reference not set to an instance of an object
I got an exception throw 'System.NullReferenceException: Object reference not set to an instance of an object.' when printing a list of objects.
-
What is difference between static class & singleton in C#?
What is the difference between static class and singleton in C#? What is the best practice to use them when working with asp.net and asp.net core?
-
What is difference between const & readonly keywords in C#?
What is the difference between const and readonly keywords in C#? and C# required to use them?
-
Understand basic Delegates and Events in C# with examples
In this article we will learn what is Delegates and Events in C# and why we have to use it and also some pros and cons of them when we developing an web application in C#.
-
Map object to another by using AutoMapper in C# Asp.Net Core
Map object to another object in C# Asp.Net Core is a step we have to do every day. Normally we use a constructor to map. In this article, I introduce Automapper library to help map easy, and simple.
-
Error : The given key was not present in the dictionary in C# Asp.Net Core
Error: The given key was not present in the dictionary in C# Asp.Net Core when getting an item from a list or dictionary
-
How to install and uninstall window service in .Net Framework
How to install and uninstall window service in .Net Framework version 4.5 by using the command in Window Server 8 R2.
-
'Collection was modified; enumeration operation may not execute.'
System.InvalidOperationException: 'Collection was modified; enumeration operation may not execute.'
-
How to convert sublists to a flat list using LINQ in C#
How to convert sublists to a flat list using LINQ in C#? I try use Select() LinQ but it is not working for me.