Getting description of Enum in C#?
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: public enum AuthorLevels {...
View ArticleSql Like functionality in LINQ?
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...
View ArticleIsNullOrEmpty for Generic collections in C#
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...
View ArticleCalling an API using RestSharp in ASP.NET
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....
View ArticleAuto Properties in C# 6.0
There are lot of new and exciting features added introduced in C#6.0 lets discuss new feature ‘auto properties‘ In earlier version, our declaration was: public int RollNumber {get;set;} In above we...
View ArticleEncode or decode strings using angularJS
There are certain ways to encode or decode string in angulars. In this code snippet we will take a look a very simplest way: Lets see how we can do the same in JQuery Encoding $.base64.encode("Demo...
View ArticleHow to retrieve column names using datareader? – Part III
The following is the snapshot shhowing the output: The post How to retrieve column names using datareader? – Part III appeared first on Gaurav-Arora.com.
View ArticleHow to retrieve column names using datareader? – Part II
<!-- * The code snippet tells how to retrieve fields * using datareader for, this is a part of : * Book: C#2005 Beginners: A Step Ahead * Written by: Gaurav Arora [gaurav.aroraose@yahoo.co.in]...
View Article