I wanted to create a self hosting console application without going to the hassle of creating a new web application project. So all i had to do was to create a console application and then …
Continue reading »Month: July 2017
Setting up Bot Framework Environment
To create your first c# Bot you need to setup your environment you the Bot project template and the Bot framework channel emulator. They are not included in the standard VS installation package (at least not …
Continue reading »Difference between Abstract and virtual – Good to know series
Though the concept is really simple but there is always an edge confusion between the two. Lets discuss them one by one using example. To understand the concept of Abstract lets consider one of this …
Continue reading »Difference between struct and classes – Good to know series
Structs are value types so their memory allocation is stored in Stack in the memory on your computer and the class is stored on heap which is a different location the logical memory. The reason …
Continue reading »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 …
Continue reading »Difference between string and String – Good to know series
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 »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 »