You may ask what is the purpose of this post. The title seems really confusing indicating that i may have used the same word twice and trying to explain the difference between it. The thing …
Continue reading »Category: C#
Parsing an XML
In this post i am going to explain two different ways to parse XML file. I am directly going to start with the code but before that here is my sample XML. In the code …
Continue reading »Difference between IEquatable and IComparable
I was always getting confused in what to use until i came to know when should we use IEuqatable and IComparable. So lets say you have an object and you want to use it in …
Continue reading »Hello world to .Net core using CLI
I realy want to get my hands dirty with the new .Net core hype so i thought may be not its the time. Before going crazy on the visual studio i decided to use the …
Continue reading »Tasks in action
A quick reference on how you can use tasks. I wont write much around here as the code is explaining it self. The name of the methods tell the action around the task, how they …
Continue reading »Using NHibernate- ADO Connection
So I had a problem where I need to use the sqlBulk to insert multiple records from a data table to database. Now we are using NHibernate but sometime we don’t always use it or …
Continue reading »Difference between override-virtual and new components
The override modifier is used to extend the functionality of an abstract or virtual method. To easy understand this consider the following example. In this example the base class is abstract along with two methods …
Continue reading »Limiting generics class to use selective types
There are certain situations where you only want to use generics types for certain types. Mean you want to limit it to be used for certain types only. Consider the following example where we have …
Continue reading »Track how much time are you spending on different application
A few days back i got the idea of figuring our how much time was i spending on different application while working. So i made this small console application its not perfect but it can …
Continue reading »Database operations using c# – Dropping a database
In the first post we have created a DB using c#. Now this time we will drop a DB I have divided the code in to two classes so lets see them in detail. The …
Continue reading »