Few days back, I’ve delivered a talk on ‘Test Driven Development’. More detail: Test Driven Development. Just after session, I’ve received many queries and lot of responses from great audience, here is one of the good questions, asked during session by great guy Balwinder Singh. Q. How do I find Odd even in C# using
A tiny question but many times it has been asked in various discussion forms and interviews about the difference between Span and Div tags. Div stands for Division which means to divide a place or body or page where need to show some tasks. So, Div tag is nothing but its Divide a page or
Problem A long-long ago, I faced this problem while using NHibernate “Nhibernate threw an error when used Reserved SQLserver kerywords with in mappings, queries etc.” I tried to find the solution for this issue and I did not find a good solution the only one I found is just manually encode these reserved keywords. It
In this short code tutorial we will create our custom method with the use of Streaming and will see how serialize and deserialize happened. I have received one email quoting above question, which was related to my recent talk on ASP.NET MVC for Beginners Series in Delhi, India. There are many serialize and deserialize library
In this code snippet we will look an easy way to get description of Enum. Lets discuss a simplest way, just need to define an extension method: Our pre-defined Enum: Define an extension method: Do not forget to add following namespace, in above: Now, call this extension method as: Above will give you: ‘Advance’.
In this code snippet we will create an extension method which will add functionality similar to functionality of SQL ‘Like’ ‘Can we use a ‘Like’ functionality in LINQ, which contains same functioning as ‘Like’ in SQL’? Are you going to say ‘No’, wait just read this snippet and you will say ‘Yes’ 🙂 First, lets
In this code snippet we will see creation and implementation of IsNullOrEmpty for collections. Can I implement IsNullOrEmpty for my Generic collections/lists ? Its out of C#. Unfortunately there is only one method which is of a String method String.IsNullOrEmpty() available, framework does not provide us such things. What is the solution for this. A
In these days Rest Services are most popular, everyone like to use Rest Services. RestSharp is a Simple REST and HTTP client for .Net There are many ways to consume RESTFull services in client veg. WebClient etc. But, RestSharp is the wonderful to consule REST services. This provides a simple call while we want o