Hi, today I'd like to discuss about "Collection in C#". In order to understand the importance of Collection and why we need that in our programming language, we'll need to look back into our time machine and should start journey from .Net Framework 2.0 to .Net Framework 4.5.
The first question come into our mind - Why we need Collection?
In many times we want to work with group of related objects. Before Collection we used Array for the same. If we can work with group of objects with array then why we need "Collection"?
Data Structure is process through which we can collect and organize data in best way as well as perform operation on that in most effective way. If we have good understanding of data structures then we are specialized in organizing and storing data. Data structure is designed to organized data to suit a specific purpose so we can access and perform operation with in appropriate ways.
There are mainly two types of data structure:
a.) Primitive Data Structures.
b.) Abstract Data Structure
Volatile keyword is so important in the .Net Framework. Here we have also an important question: "Why we need this keyword and what happen if we don't use this keyword in our application?"
Volatile keyword comes into frame in .Net Framework to solve this problem. When we declare any variable with Volatile keyword thread access this variable from main memory location, means they don't create copy of variable into their local memory. I am very glad that C# has ensured that any volatile read or write is also an atomic read or write.
Whatsapp have launched an online/web version of their overly popular smartphone messaging app.
I was very much interested in seeing the architecture of this app because as far as we knew, they never stored messages on their server but all the data was only stored in users phone. So I started to look under the hood of the webapp and what we saw was a beauty.
First let me list down the FrameWorks they have used in creating this app.
Now a days, we read a lots of discussion about Bundling and Minification. By name we can guess these are two important techniques for web development.
I'd like to discussion why we need to Bundling & Minification and how we can do that? We start with "Why we need Bundling in our application?"
Some days before I gone through this requirement where I need to configure my current project from "Web essentials" to "Gulp". These two setting are to use "Bundling and minification". We will elaborate these concept in coming blog.
If we talk about "Gulp" we have an important question here:
What is Gulp & how it’s work?
Similarly, it returns a negative infinity value, printed as - Infinity, when the resulting negative value becomes more negative than the most negative representable number.
We have a tables (SQL Server) which references paths (with specific name/ value), but now the path is going to change. In the path column, we have many records and we need to change just a portion (name/ value) of the path, but not the entire path. And we need to change the same string to the new one, in every record.
How can we do this with a simple update?
We have read about a SQL injection attack where text is inserted and this could be a good way to remove the offending text.