Introduction In this article, I am going to explain how to fix the error Object doesn’t support property or method ‘includes’ as well as Object doesn’t support property or method ‘indexOf’ in internet explorer (IE) browser. Here, I will also explain about prototype and Polyfill in the javaScript. This is […]
Creating a Static Analyzer for C# From Project Templates in Visual Studio
”Static code analyzer” sounds a bit complicated, doesn’t it? What if after reading this small note, you will have enough knowledge to create your own static analyzer? Interested? Let’s get started! Overview and Preparation All further static analyzer development will be based on .NET Compiler Platform aka Roslyn. This platform […]
Export Data to CSV File Using ASP.NET MVC
Introduction In this article, I am going to explain how to export data into a CSV file using ASP.NET MVC with SQL Server and entity framework. Here, I’ll also explain how to fetch records from SQL server database using entity framework and display it into view in MVC as well […]
C# Code Analysis With Roslyn’s Syntax Trees
Introduction In the previous article, we compared Visual Studio’s templates that one can use to build their own static analyzer. There we detailed how to write your first simple analyzer and talked about how Roslyn maps source code as syntax trees. Now we will talk about syntax tree structure in […]
C# Code Analysis Using Roslyn Semantic Model
Introduction In the previous notes, we analyzed the source files, relying entirely on the syntax tree and traversing its nodes. In many cases, traversing a single syntax tree is not enough to perform deep analysis. Here the concept ”semantic model’‘ comes in handy. A semantic model opens up new possibilities […]
C# Code Analysis Using Roslyn Syntax Trivia
Where to start if we want to analyze all the comments in the code? Which syntax tree nodes do we need to traverse to do this? How can we figure out that the analyzed method contains preprocessor directives for conditional compilation? Such elements of the syntax tree as syntax trivia […]
First() vs FirstOrDefault() in C# | How to Use Methods that Return Default Values
Which method should you use to get the first collection’s element that meets a certain condition – ‘First‘ or ‘FirstOrDefault‘? What should you choose to get the last element – ‘Last‘ or ‘LastOrDefault‘? At first glance, the choice may not be obvious. Hopefully, this article will answer these questions and […]
How to Bind WebGrid in ASP.NET MVC
In this article, I will explain, how to populate/Bind web grid in ASP.NET MVC. Here I’ll show you how to create a table in the database, how to record into SQL Server database table as well as how to retrieve the data from the SQL Server database using entity framework […]
Create REST API with ASP.NET Core 5.0 And Entity Framework Core
In this article, we will learn how to create a web API project with ASP.NET Core 5.0 and entity framework core. Here I’ll show you how to CRUD (Create, Read, Update and Delete) operations on SQL server database table using the ASP.NET Core 5.0 REST API and Entity Framework Core. […]
Reading Request Body in ASP.NET MVC
In this article, I will explain how to read the JSON POST request body in ASP.NET MVC. Here I’ll also explain different kinds of ways to read the request body in the action method of the MVC controller. Here I’ll also show how you can pass data into the request […]







