Quantcast
Channel: Gaurav-Arora.com » Code-Snippets
Browsing latest articles
Browse All 8 View Live

How 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



Image may be NSFW.
Clik here to view.

How 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 Article

Encode 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 Article

Image may be NSFW.
Clik here to view.

Auto 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 Article

Calling 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 Article


Image may be NSFW.
Clik here to view.

IsNullOrEmpty 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 Article

Image may be NSFW.
Clik here to view.

Sql 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 Article

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 Article

Browsing latest articles
Browse All 8 View Live




Latest Images