Browse by Tags

All Tags » C#.NET (RSS)

Deferred vs Immediate execution in Linq by Jalpesh P. Vadgama

In this post, We are going to learn about Deferred vs Immediate execution in Linq.  There an interesting variations how Linq operators executes and in this post we are going to learn both Deferred execution and immediate execution. What is Deferred...
Filed under: , , ,

Static vs Singleton in C# (Difference between Singleton and Static) by Jalpesh P. Vadgama

Recently I have came across a question what is the difference between Static and Singleton classes. So I thought it will be a good idea to share blog post about it. Difference between Static and Singleton classes: A singleton classes allowed to create...
Filed under: ,

SelectMany operator in Linq C# by Jalpesh P. Vadgama

SelectMany is an important operator in Linq. It takes each element of a sequence to an IEnumerable and flattens the resulting sequences into one sequence. You can find out more information about different overload list from the below link. http://msdn...
Filed under: , , ,

Tip-Convert array to Comma delimited string by Jalpesh P. Vadgama

I was needed to convert an string array into the comma delimited string and the old way to do that is too with for loop. But I was sure that there should be some ready made function that will do this very easily. After doing some research I have found...
Filed under: ,

Lock keyword in C# by Jalpesh P. Vadgama

As we have written earlier we have now multi core CPU for our computers and laptops and to utilize that we need to use threading in code. Now if we create thread and access same resource at same time then it will create a problem at that time locking...
Filed under: , ,

Where I can find SQL generated by Linq-To-SQL by Jalpesh P. Vadgama

Yesterday I have written a blog post about Where I can find SQL Generated by Entity Framework? and same day I got request from one of the our reader Ramesh that how I can find SQL generated by Linq-To-SQL? . I thought its a good idea to write a blog post...
Filed under: , ,

Caller Info Attributes in C# 5.0 by Jalpesh P. Vadgama

In c# 5.0 Microsoft has introduced a Caller information attribute. It’s a new feature that is introduced in C# 5.0 and very useful if you want to log your code activities. With the help of this you can implement the log functionality very easily. It can...
Filed under: , ,

Parallel task in C# 4.0 by Jalpesh P. Vadgama

In today’s computing world the world is all about Parallel processing. You have multicore CPU where you have different core doing different work parallel or its doing same task parallel. For example I am having 4-core CPU as follows. So the code that...
Filed under: ,

Predicate delegate in C# by Jalpesh P. Vadgama

I am writing few post on different type of delegates and and this post also will be part of it. In this post I am going to write about Predicate delegate which is available from C# 2.0. Following is list of post that I have written about delegates. Delegates...
Filed under: , , ,

Action delegate in C# by Jalpesh P. Vadgama

In last few posts about I have written lots of things about delegates and this post is also part of that series. In this post we are going to learn about Action delegates in C#.  Following is a list of post related to delegates. Delegates in C#....
Filed under: , ,
More Posts Next page »