LINQ to perform operation with DataTable in C#

If you are a C#.Net developer, then you must be familiar with Data Table and LINQ. In C#, a Data Table is an in-memory object to represents data in tabular format i.e. rows and columns. Once you get data in a Data Table object there could be various operations that can be performed. In this … Read more

How to Integrate SMS gateway in ASP.Net website ?

In this blog, I will write about How to send SMS using C# code?You all must have received SMS related to OTP (One Time PIN) on your mobile for various kind of transactions from different websites or App.Here I will provide the C# code which you can use to send SMS to your customers/users from … Read more

What’s new in C# 6.0 language?

C# 6.0 is an another version of C# programming language released in the year 2015. C# 6 provides numerous new features which helps developer to write C# code in more clean and optimized way. Here are top 8 features of C# 6.0 language No major concepts introduced in C# 6.0. Mainly small features have been added … Read more

Important C# Interview Questions and Answers

In this blog, I have collected important C# interview questions and answers and their answers, which will help you in preparing your interview. If you are an ASP.Net or ASP.Net Core programmer or developer who is preparing for an interview, then believe that you are reading the right blog. Whether you are a fresher or have … Read more

State Management in C#

In my other blogs, you may read C# 6.0 new featuresIn this blog, I will explore about State Management in C#. If you have attended an interview as a C#.Net developer, then questions related to State Management is likely to be asked. You may read Important C# interview questions and answers What is State Management … Read more

What is collection in C#

Collection classes are used to store data of specific types. All types of collection support IEnumerable interface. Below are collection classes used in C#.net, all classes come under System.Collection namespace. List – An array does not allow dynamic resize, but a list allows dynamic size. Example: List<int> list = new List<int>(); list.Add(1); list.Add(5); list.Add(7); list.Add(10); … Read more

What is Nullable types in C#

What is nullable type in C# code? Please explain with an example. Nullable types were introduced in C# 2.0.Nullable types are instances of the System.Nullable<T> struct. A nullable type can represent the range of values for its underlying data type, also an additional null value. For example, a Nullable<Int32>, pronounced “Nullable of Int32,” can be … Read more

Dictionary in C sharp. Please explain with code

What is a dictionary in C#?Please explain. Below you can understand the use of the dictionary in an easy way. The Dictionary type in the C# language provides fast lookups with keys to get values.It allows you to use keys and values of any type, including ints and strings.using System;using System.Collections.Generic; class Program{    static … Read more

Concept of boxing and Unboxing in C sharp

Boxing and Unboxing concept in C# language. Explaining with code. Boxing: Boxing refers to the process of moving from a value type to reference type.Un-Boxing: Un-Boxing refers to the process of moving from a reference type to value type. Ex:Public void BoxingUnbox(){            int i = 10;          … Read more

Bulk copy data from excel sheet to sql table

How to process bulk copy data from excel sheet to sql table. Here is code to copy data from excel to sql.       C# Code:       string excelFile = @”C:Book1.xls”;        string ssqlTable = “[MyTableName]”;        string exceldataQuery = “select [id],[email],[status] from [Sheet1$]”;        try    … Read more

RSS
YouTube
YouTube
Instagram