Importance of "checked" & "unchecked" keyword in C# :-
Today we will discuss the use of "checked" and "unchecked" keywords and try to understand the importance of these keywords in C#.
We will start with some scenario then come to the point. Tell me what is the maximum value of int in C#?
- Console.WriteLine(int.MaxValue); // 2147483647
When we will execute the above code, we will get the maximum value of int in c#. The answer of maximum value of int in C# is "2147483647".
What happen when we try to store more than maximum value into int type variable?
Some days before I installed Visual Studio 2015 in my system. It introduces a completely new version of ASP.Net with include C# 6 language. In previous version they introduced lots of new concept like async and await in version 5, dynamic in version 4, LINQ in version 3 and so on. Now when we talk about C# 6, there are no any major feature changes came with this version, but there are a lots of syntactical improvements which will help you for better coding styles.
1. Primary Constructor & Auto Implemented Properties Initializers
2. Expression Bodied members (Functions and Properties)
3. Getter-only auto-properties:
Today we will try to understand "What exactly is the use of "Yield" keyword and what scenario we should use that?
"Yield" keywords helps to do custom stateful iteration over a collection. The main purpose of "Yield" keyword is Custom iteration & Stateful iteration.
Today we will discuss that how we can use the SweetAlert message in AngularJS. There are some pre-request files need to use this functionality.
We can downlaod & install thses file with multiple way :
2. Install through bower: $ bower install sweetalert
3. Install through NPM: $ npm install sweetalert
When we talk about Object Oriented Programming language, we found some strongly type object avialable in C#, C++ and Java.
In previous post in data structure we discussed about Bubble Sort and today we will discuss about Insertion Sort. After Bubble Sort, It is a simple Sorting algorithm which sorts the array by shifting elements one by one. Insertion Sort is a simple sorting algorithm that works the way we sort playing cards in our hands.
But in our card example, the new card could be smaller than some of the cards you're already holding, and so you go down the line, comparing the new card against each card in your hand, until you find the place to put it. You insert the new card in the right place, and once again, your hand holds fully sorted cards. Then the dealer gives you another card, and you repeat the same procedure. Then another card, and another card, and so on, until the dealer stops giving you cards.
Can an abstract class have a constructor?
Hi guys, today we will discuss some unclear concept of abstract class. Tell me one thing that, can an abstract class have a constructor? If your answer is yes then what is the use?
Most of times we heard what is an abstract class, use of an abstract class and difference between abstract class and interface? Today we will move forward and discuss a new topic, constructor in an abstract class and their use.
First I give you answer what I asked, yes an abstract class can have a constructor. Confused?
In application development there are lot of scenario comes when we need to sorting our listed or arrays data. Provided list or array can be n number size. So when we write a code to sorting that data, we should consider the most efficient way to do that, because that process impact on your application performance base on time & space complexity. So for that you'll need a sorting algorithm. To understand the more complex and efficient sorting algorithms, it's important to first understand the simpler, but slower algorithms.
Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.
Magic of SQL Server
Today we will talk about magic of Sql Server. There is a scenario, we need to swap value between two columns, what will be sql query for that?
Look the following sql query and you will surprised that there is a simple way to do that in Sql without using third variable.
Tell me above sql query will be execute or we will get error.