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’.
Author Archives: Gaurav
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
Contents Abstract Myths related to S.O.L.I.D. I know OOPS then why I learn S.O.L.I.D. I Know Design Patterns then why I learn S.O.L.I.D. SOLID Principles are only applicable to .NET/C# and not for Java. As an Architect, do I really need to care about S.O.L.I.D?. I am working in maintenance project, why do I care
Q. What is Silverlight Tool Kit? Ans: To create an application or game you need to design, code and give some extra feature to your output. To do the above, you need some controls, IDE etc. Silverlight Tool kit is nothing but is a collection of Silverlight Tools, Components etc. It includes source code describing
Introduction A few days back, I was looking for some tool to analyse my .Net Application, I am aware of many tools like FxCop etc. But, I need something different to get the inside of my application. Then, I came to know about NDepend. In this short post, I am sharing my installation experience of
I started my morning with coffee and a lovely mail from Team IndiaMentor, which says that they have awarded me mentorship. A certificate of gratitude is also received. Apart from this I am very glad to see my professional profile on their portal: Gaurav Kumar Arora – Trainer, Author and Speaker.