Tag: CSharp
-
C# Basics: Delegates
Delegates are one of the most used features of C#. It allows you to pass a function as of function pointer. It is kind of same as function pointer of C++. Put simply, delegates are the same as a function pointer of C ++. It refers to another function. As noted in Microsoft official documentation:…
-
What is the Extension Method in C#?
Read full article on Infragistics blog I often get questions about the Extension Method in C#. The Extension Method was introduced in C# Version 3.0. and allows us to add functionalities in an existing class without modifying it, extending it, or re-compiling it. Essentially, the Extension Method allows us to add a new method to…
-
C-Sharp Basics: What is Checked and Unchecked operations
You may have come across questions, What is checked and unchecked primitive operations? How to handle overflow in C-Sharp? Does CLR handles overflow or developers? So let us start with understanding a program. Consider the code listed below: On running you will get 44 as the output. There is one serious observation about the…
-
Exception Filters in C-Sharp 6.0
So far we deal with the Exceptions as below. As you see in the following code snippet, we are catching the exception and displaying the error message. Challenge in the above snippet is that you cannot apply filter to the exception. Of course you can have if-else statement inside the try catch block but it…
-
Using AutoMapper : Getting Started
Read full article on Falafel blog I have often seen developers use the LINQ SELECT statement to create a new instance of one class from an existing instance of another class. There are many scenarios when you may have to do this, for example: Creating the domain class instance from the entity class instance Creating…
-
Video : Getting started with the Automapper in C-Sharp
This video will help you in getting started with the Automapper. Please give feedback in comment to improve further
-
Understanding IEnumerable and IQueryable in C#
I see developers are not that confident about usage of the mentioned interfaces. In this post, I am going to discuss basic differences among IEnumerable and IQueryable and in which scenario to use what
-
The call is ambiguous between the following methods in C#
the call is ambiguous between the following methods in C# can be resolved as easily as given discussed above.
-
Video: is and as operator in C-sharp
In this video you will learn about is and as operator in C-sharp