Jul 102017
 
Deserialize Object using newtonsoft

In this example i will printing out the list of movies that we get in the form of Json and print them out. Step1: Create a console project Step2: Add newtonsoft nuget package Step3: I will be using a open source api that i will call to pint the title of the movie along with the […]

 Posted by at 10:38 am
Jul 062017
 
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 there are two ways of parsing the XML one is the simple way of doing it through which it is […]

 Posted by at 2:45 pm
Jul 052017
 
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 a dictionary. Sometime we implement the ‘contains’ method from the dictionary on the list. Now this method wont work if […]

 Posted by at 11:30 am
Jul 042017
 
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 .net core using the command line. So lets start To begin with you need to have .net installed. If you […]

 Posted by at 4:40 pm
Jul 032017
 
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 were created and what is the purpose of that code. This is really basic code snippet right now but i […]

 Posted by at 12:59 pm
Apr 282017
 
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 not truly use the NHibernate entities instead sometime we use Sqls directly either in new ado connection or using the […]

 Posted by at 4:38 pm
Mar 032017
 
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 one is abstract and the other is virtual. When we use inherit from this base class we are bound to […]

 Posted by at 2:25 pm