<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dotnetjalps-asp.net </title><link>http://weblogs.asp.net/jalpeshpvadgama/default.aspx</link><description>Exploring technologies through innovations!!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>HTML editor enhancement in visual studio 2012</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/24/html-editor-enhancement-in-visual-studio-2012.aspx</link><pubDate>Sun, 24 Feb 2013 07:23:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9906669</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9906669</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9906669</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/24/html-editor-enhancement-in-visual-studio-2012.aspx#comments</comments><description>&lt;p&gt;In this post I am going to explain about HTML Editor Enhancement in visual studio 2012. I have been writing few post about Visual studio 2012 new features and this post will also be part of that. You can read whole series at following link.&lt;/p&gt;  &lt;p&gt;&lt;a title="What&amp;#39;s new in visual studio 2012 series" href="http://www.dotnetjalps.com/p/visual-studio-2012.html" target="_blank"&gt;Visual Studio 2012 feature series&lt;/a&gt;&lt;/p&gt;  &lt;h2&gt;&lt;/h2&gt;  &lt;h2&gt;Tag highlighting in Visual Studio 2012:&lt;/h2&gt;  &lt;p&gt;In visual studio 2012 You can highlight the start and end tag of a particular HTML element. One you click on starting tag of HTML element it will have other part highlighted just like following.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/HTMLTagHighLightVisualStudio2012_2639065B.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="HTMLTagHighLightVisualStudio2012" border="0" alt="HTMLTagHighLightVisualStudio2012" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/HTMLTagHighLightVisualStudio2012_thumb_26951383.png" width="604" height="54" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h2&gt;Automatic Tag Update in Visual studio 2012:&lt;/h2&gt;  &lt;p&gt;This feature will help you when you change HTML in Visual studio 2012. When you modify start tag of HTML element it will update end tag automatically. You don’t have to worry about it. For example in above picture we have &amp;lt;div&amp;gt;tag and now if change this to &amp;lt;p&amp;gt; it will automatically update like following.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/AutomaticTagUpdateVisualStudio2012_46ECA375.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="AutomaticTagUpdateVisualStudio2012" border="0" alt="AutomaticTagUpdateVisualStudio2012" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/AutomaticTagUpdateVisualStudio2012_thumb_22979926.png" width="604" height="49" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h2&gt;Full HTML5 tag support:&lt;/h2&gt;  &lt;p&gt;Visual studio 2012 now supports all the HTML5 tag and provide intellisense for that. So You can develop HTML5 web applications very easily.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/Html5SupportVisualStudio2012_26C170EB.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Html5SupportVisualStudio2012" border="0" alt="Html5SupportVisualStudio2012" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/Html5SupportVisualStudio2012_thumb_3C4B83BB.png" width="604" height="186" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;That’s it. Hope you like it. Stay tuned for more..&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9906669" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET+4.0/default.aspx">ASP.NET 4.0</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/VisualStudio2012/default.aspx">VisualStudio2012</category></item><item><title>How to hide title bar in jQuery UI modal dialog?</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/02/how-to-hide-title-bar-in-jquery-ui-modal-dialog.aspx</link><pubDate>Sat, 02 Feb 2013 12:27:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9828360</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9828360</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9828360</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/02/how-to-hide-title-bar-in-jquery-ui-modal-dialog.aspx#comments</comments><description>&lt;p&gt;&lt;a title="How to Hide title bar in jQuery UI Dialog?" href="http://jqueryui.com/" target="_blank"&gt;jQuery UI&lt;/a&gt; is a great open source set of user controls and it’s very easy to use. Recently one of my friend asked question that how we can hide title bar in jQuery UI Dialog? so this post is a reply to him. Let’s create a simple html and use jQuery Ui modal dialog. Following is a code for that.&lt;/p&gt;  &lt;p&gt;Here in the above code you can see I have create a hello world pop up with asp.net jQuery CDN. &lt;/p&gt;  &lt;pre class="brush: xml; gutter: false; toolbar: false; smart-tabs: false;"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Hello World  Popup&amp;lt;/title&amp;gt;
    &amp;lt;link type=&amp;quot;text/css&amp;quot; href=&amp;quot;http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/themes/smoothness/jquery-ui.css&amp;quot;
        rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;
    &amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.0.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/jquery-ui.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
        function Show() {

            $(&amp;quot;#dialog:ui-dialog&amp;quot;).dialog(&amp;quot;destroy&amp;quot;);

            $(&amp;quot;#dialog-modal&amp;quot;).dialog({
                height: 300,
                width: 200,
                modal: true
            });
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div id=&amp;quot;dialog-modal&amp;quot; title=&amp;quot;Hello Word&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;
        Hello World Juqry UI popup
    &amp;lt;/div&amp;gt;
    &amp;lt;input type=&amp;quot;button&amp;quot; onclick=&amp;quot;javascript: Show()&amp;quot; value=&amp;quot;click me&amp;quot; /&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Let’s run that in browser. Now you can see if you run this browser it will look like below.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/jQueryUiTitleBar_6B426308.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="how to hide title bar in jquery UI modal popup" border="0" alt="how to hide title bar in jquery UI modal popup" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/jQueryUiTitleBar_thumb_391B12BE.png" width="404" height="444" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;&lt;/h2&gt;

&lt;h2&gt;Hiding jQuery UI Dialog Title Bar:&lt;/h2&gt;

&lt;p&gt;Now If we wnat to&amp;#160; hide dialog box then we just have add one more thing extra in show function in above code to hide Hello Word Title bar with close icon.&lt;/p&gt;

&lt;pre class="brush: js; gutter: false; toolbar: false; smart-tabs: false;"&gt;function Show() {

    $(&amp;quot;#dialog:ui-dialog&amp;quot;).dialog(&amp;quot;destroy&amp;quot;);

    $(&amp;quot;#dialog-modal&amp;quot;).dialog({
        height: 300,
        width: 200,
        modal: true
    });
    $(&amp;quot;.ui-dialog-titlebar&amp;quot;).hide();
}&lt;/pre&gt;

&lt;p&gt;So in the above code you can see I have written &lt;em&gt;‘$(&amp;quot;.ui-dialog-titlebar&amp;quot;).hide();’ .&lt;/em&gt;&amp;#160; Now you run that in browser it will look like below.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/jqueryUITitleBarHidden_1200537C.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="how to hide jquery UI dialog box title bar Now hidden " border="0" alt="how to hide jquery UI dialog box title bar Now hidden " src="http://weblogs.asp.net/blogs/jalpeshpvadgama/jqueryUITitleBarHidden_thumb_7A196C55.png" width="404" height="444" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;That’s it. It’s very easy. Hope you like it. Stay tuned for more..&lt;/p&gt;

&lt;p&gt;Original blog:&lt;a title="http://www.dotnetjalps.com/2013/02/How-to-hide-title-bar-in-jQuery-UI-modal-dialog.html" href="http://www.dotnetjalps.com/2013/02/How-to-hide-title-bar-in-jQuery-UI-modal-dialog.html"&gt;http://www.dotnetjalps.com/2013/02/How-to-hide-title-bar-in-jQuery-UI-modal-dialog.html&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9828360" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/jQuery/default.aspx">jQuery</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/JqueryUI/default.aspx">JqueryUI</category></item><item><title>How to create overload methods in WCF service with C#</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/02/how-to-create-overload-methods-in-wcf-service-with-c.aspx</link><pubDate>Sat, 02 Feb 2013 11:24:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9828168</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9828168</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9828168</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/02/how-to-create-overload-methods-in-wcf-service-with-c.aspx#comments</comments><description>&lt;p&gt;Before some days I have posted an blog about &lt;a title="How to create overloaded web methods in asp.net web service?" href="http://www.dotnetjalps.com/2013/01/How-to-create-overloaded-web-methods-in-asp-net-web-service.html" target="_blank"&gt;How to create overloaded web methods in asp.net web service?&lt;/a&gt; In this post I am going to explain how we can create overload methods in WCF(Windows Communication Foundation) service with C# language.&lt;/p&gt;  &lt;p&gt;So let’s consider same Hello world example which we have used web service overload method. Let’s create two methods HelloWorld one is with name and another is without parameter. For WCF service we have to first create interface following is a code for that.&lt;/p&gt;  &lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;using System.ServiceModel;

namespace WebApplication4
{
    [ServiceContract]
    public interface IHelloWorldOverload
    {
        [OperationContract]
        string HelloWorld();

        [OperationContract]
        string HelloWorld(string name);

    }
}&lt;/pre&gt;

&lt;p&gt;Now our interface is ready so it’s time to implement this interface and create WCF service like following.&lt;/p&gt;

&lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;namespace WebApplication4
{
    public class HelloWorldOverload : IHelloWorldOverload
    {
        public string HelloWorld() {
            return &amp;quot;Hello World&amp;quot;;
        }

        public string HelloWorld(string name) {
            return string.Format(&amp;quot;Hello World {0}&amp;quot;, name);
        }
    }
}&lt;/pre&gt;

&lt;p&gt;So now we are done with WCF service and let’s do compilation so if you compile this It will compile as this is a valid code. Let’s run it in browser. Now the problem will start. You will get following error.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;“Cannot have two operations in the same contract with the same name, methods HelloWorld and HelloWorld in type WebApplication4.IHelloWorldOverload violate this rule. You can change the name of one of the operations by changing the method name or by using the Name property of&amp;#160; OperationContractAttribute.”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/WCFOverloadMethodProblem_1579BE4E.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Overload Methods in WCF Service" border="0" alt="Overload Methods in WCF Service" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/WCFOverloadMethodProblem_thumb_1BFD1811.png" width="504" height="277" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;&lt;a href="http://www.dotnetjalps.com/2013/02/How-to-create-overload-methods-in-WCF-service-with-Csharp.html" target="_blank"&gt;Read more&lt;/a&gt;&lt;/h2&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9828168" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/WCF/default.aspx">WCF</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET+4.0/default.aspx">ASP.NET 4.0</category></item><item><title>SelectMany operator in Linq C#</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/01/selectmany-operator-in-linq-c.aspx</link><pubDate>Thu, 31 Jan 2013 19:29:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9821265</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9821265</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9821265</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/02/01/selectmany-operator-in-linq-c.aspx#comments</comments><description>&lt;p&gt;SelectMany is an important operator in Linq. It takes each element of a sequence to an &lt;em&gt;IEnumerable &lt;/em&gt;and flattens the resulting sequences into one sequence. You can find out more information about different overload list from the below link.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/system.linq.enumerable.selectmany.aspx" href="http://msdn.microsoft.com/en-us/library/system.linq.enumerable.selectmany.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.linq.enumerable.selectmany.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In this post I am going to explain How it can be really useful when you want to find list related to two entities. Practical example will be like a person can have multiple address and if you want to find list of addresses that are used with person and then this SelectMany operator can be really useful.&lt;/p&gt;  &lt;p&gt;So for this example First, I have create &lt;em&gt;Address&lt;/em&gt; class with Street and Postalvcode property&lt;/p&gt;  &lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;public class Address
{
    public string Street { get; set; }
    public string PostalCode { get; set; }
}&lt;/pre&gt;

&lt;p&gt;Now we are going to create &lt;em&gt;Person&lt;/em&gt; class which have Name property and A person can have multiple address so address generic list as property like following.&lt;/p&gt;

&lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;public class Person
{
    public string Name { get; set; }
    public List&amp;lt;Address&amp;gt; Addresses { get; set; }
}&lt;/pre&gt;

&lt;p&gt;&lt;a title="Select Many operator in linq" href="http://www.dotnetjalps.com/2013/02/SelectMany-operator-in-Linq-csharp.html"&gt;Read more&amp;gt;&amp;gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9821265" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_23002E00_NET/default.aspx">C#.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/Linq/default.aspx">Linq</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>Visual studio 2012 color editor- Make Visual studio 2012 Colorful</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/30/visual-studio-2012-color-editor-make-visual-studio-2012-colorful.aspx</link><pubDate>Tue, 29 Jan 2013 19:05:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9813916</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9813916</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9813916</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/30/visual-studio-2012-color-editor-make-visual-studio-2012-colorful.aspx#comments</comments><description>&lt;p&gt;This blog will be part of &lt;a title="Visual Studio 2012 feature series- What&amp;#39;s new in visual studio 2012" href="http://www.dotnetjalps.com/p/visual-studio-2012.html" target="_blank"&gt;visual studio 2012 features series&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;I personally like the Metro UI for Visual Studio 2102 but&amp;#160; still some people are not happy with it. They really like Old Visual Studio 2010 layout and they wanted to have same kind of color in visual studio 2012. For those who want to change the color of Visual studio there is a plug called Visual Studio 2012 Color Theme editor. From which you can set colors for visual studio UI and make your visual studio look colorful. Following is a link for that.&lt;/p&gt;  &lt;p&gt;&lt;a title="Visual Studio 2012 color editor what&amp;#39;s new in visual studio 2012" href="http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05" target="_blank"&gt;http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once you download that from above location and click on installer it will ask for accepting terms and conditions like following.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/InstallColorEditor_321ED366.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Install Visual studio Color editor for visual studio 2012" border="0" alt="Install Visual studio Color editor for visual studio 2012" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/InstallColorEditor_thumb_7D9E011D.png" width="404" height="302" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Once you select visual studio version and click install it will install the Visual Studio color theme editor. There will be a menu available in Tools-&amp;gt;Change Color Theme.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/ThemeMenuVisualStudio2012_2F48F8A6.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ThemeMenuVisualStudio2012" border="0" alt="ThemeMenuVisualStudio2012" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/ThemeMenuVisualStudio2012_thumb_44E33143.png" width="404" height="357" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Even you can change color you want via customize color. Once you click that menu it will load the following window to customize color.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/DiffrentColorAvailable_692815C5.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Diffrent color available in visual studio" border="0" alt="Diffrent color available in visual studio" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/DiffrentColorAvailable_thumb_3FD0CDC7.png" width="504" height="214" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Once you write your theme name and click on create button. It will allow you to customize color.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/ColorEditorVisualStudio2012_48712653.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ColorEditorVisualStudio2012" border="0" alt="ColorEditorVisualStudio2012" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/ColorEditorVisualStudio2012_thumb_3979D16C.png" width="504" height="394" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Following are different color themes available with Visual Studio 2012 color theme editor.&lt;/p&gt;  &lt;h2&gt;&lt;/h2&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;h3&gt;&lt;a href="http://www.dotnetjalps.com/2013/01/Visual-studio-2012-color-editor-Make-Visual-studio-2012-Colorful.html" target="_blank"&gt;read more&lt;/a&gt;&lt;/h3&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9813916" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/VisualStudio/default.aspx">VisualStudio</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/VisualStudio2010/default.aspx">VisualStudio2010</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/VisualStudio11/default.aspx">VisualStudio11</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/VisualStudio2012/default.aspx">VisualStudio2012</category></item><item><title>C# null-coalescing operator ??</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/28/c-null-coalescing-operator.aspx</link><pubDate>Sun, 27 Jan 2013 18:42:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9806742</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9806742</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9806742</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/28/c-null-coalescing-operator.aspx#comments</comments><description>&lt;p&gt;C# language provides many features and null-coalescing operator(??) is one of them. It’s a great operator to check whether object is null and if it is null then it will provide a default value. I have seen most of the people are not using while it’s a great feature. So I decided to write a blog about this.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;You can find more information about null-coalescing operator from the below link.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/ms173224.aspx" href="http://msdn.microsoft.com/en-us/library/ms173224.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms173224.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;Example:&lt;/h2&gt;  &lt;p&gt;In below example we are checking nullable integer value whether its having value or not. First we are going to simple check with if else and then we are going to check same with null-coalescing operator.&lt;/p&gt;  &lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;using System;
namespace ConsoleApplication3
{
    class Program
    {
        static void Main() {
            Console.WriteLine(Number);
            Number = 1;
            Console.WriteLine(Number);
        }

        public static int? _number;

        public static int? Number {
            get {
                if (_number.HasValue) {
                    return _number;
                }
                else
                    return 0;
            }
            set {
                _number = value;
            }
        }
    }
}&lt;/pre&gt;

&lt;p&gt;Here in the number property I have used the if-else loop to check whether number has value or not. We can simply use null-coalescing operator to check whether it has value not like it.&lt;/p&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;using System;
namespace ConsoleApplication3
{
    class Program
    {
        static void Main() {
            Console.WriteLine(Number);
            Number = 1;
            Console.WriteLine(Number);
        }

        public static int? _number;

        public static int? Number {
            get {
                return _number ?? 0;
            }
            set {
                _number = value;
            }
        }
    }
}&lt;/pre&gt;

&lt;p&gt;Out put of both code will be same like following.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/image_0BDDBA4E.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="null-coalescing operator in c#" border="0" alt="null-coalescing operator in c#" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/image_thumb_41FF329D.png" width="504" height="256" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;That’s it. Hope you like. Stay tuned more..&lt;/p&gt;

&lt;p&gt;Original blog: &lt;a title="http://www.dotnetjalps.com/2013/01/Csharp-null-coalescing-operator.html" href="http://www.dotnetjalps.com/2013/01/Csharp-null-coalescing-operator.html"&gt;http://www.dotnetjalps.com/2013/01/Csharp-null-coalescing-operator.html&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9806742" width="1" height="1"&gt;</description></item><item><title>Tip-Convert array to Comma delimited string</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/27/tip-convert-array-to-comma-delimited-string.aspx</link><pubDate>Sun, 27 Jan 2013 08:54:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9805267</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9805267</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9805267</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/27/tip-convert-array-to-comma-delimited-string.aspx#comments</comments><description>&lt;p&gt;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. &lt;/p&gt;  &lt;p&gt;After doing some research I have found &lt;strong&gt;string.Join. &lt;/strong&gt;With the help of this we can easily an array into the comma delimited string.&lt;/p&gt;  &lt;p&gt;&lt;a title="String.Join Method for comma delimited array" href="http://msdn.microsoft.com/en-us/library/57a79xd0.aspx" target="_blank"&gt;String.join&lt;/a&gt; have two arguments one is separator and other one is either array or enumerable.&lt;/p&gt;  &lt;p&gt;Following is a code for that.&lt;/p&gt;  &lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;namespace ConsoleApplication3
{
    class Program
    {
        static void Main() {
            string[] name = {&amp;quot;Jalpesh&amp;quot;, &amp;quot;Vishal&amp;quot;, &amp;quot;Tushar&amp;quot;, &amp;quot;Gaurang&amp;quot;};
            string commnaDelmietedName = string.Join(&amp;quot;,&amp;quot;, name);
            System.Console.WriteLine(commnaDelmietedName);
        }
    }
}&lt;/pre&gt;

&lt;p&gt;Let’s run that example and here is the output as expected.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/image_11660571.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/image_thumb_437D2FEE.png" width="504" height="256" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;That’s it. Hope you like it. Stay tuned for more..&lt;/p&gt;

&lt;p&gt;Original Blog: &lt;a title="http://www.dotnetjalps.com/2013/01/Tip-Convert-array-to-Comma-delimited-string.html" href="http://www.dotnetjalps.com/2013/01/Tip-Convert-array-to-Comma-delimited-string.html"&gt;http://www.dotnetjalps.com/2013/01/Tip-Convert-array-to-Comma-delimited-string.html&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9805267" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_23002E00_NET/default.aspx">C#.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>How to get N row from datatable in C#</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/18/how-to-get-n-row-from-datatable-in-c.aspx</link><pubDate>Thu, 17 Jan 2013 20:30:22 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9766016</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9766016</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9766016</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/18/how-to-get-n-row-from-datatable-in-c.aspx#comments</comments><description>&lt;h2&gt;Problem: &lt;/h2&gt;  &lt;p&gt;Recently one of my friend was needed only first three rows of data table and so he asked me and I have multiple solutions for that. So thought it would be great idea to share with you guys.&lt;/p&gt;  &lt;h2&gt;&lt;/h2&gt;  &lt;h2&gt;Possible Solutions to problem:&lt;/h2&gt;  &lt;p&gt;There are two ways to solve this problem. &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;With normal for loop &lt;/li&gt;    &lt;li&gt;With lamda expression and linq &lt;/li&gt; &lt;/ol&gt;  &lt;h3&gt;1. With normal for loop:&lt;/h3&gt;  &lt;p&gt;Following is code from where we can get 3 rows of data table.&lt;/p&gt;  &lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;private  DataTable GetFirst3RowViaFor(DataTable dataTable) {
            DataTable newDataTable = dataTable.Clone();
            for(int i=0;i&amp;lt;3;i++)
            {
                DataRow row = dataTable.Rows[i];
                newDataTable.Rows.Add(row);
            }
            return newDataTable;
        }&lt;/pre&gt;

&lt;p&gt;Here in this way I have cloned data table structure and then I added first 3 rows of data table to new data table.&lt;/p&gt;

&lt;h3&gt;2. With lamda expression:&lt;/h3&gt;

&lt;p&gt;Following is a code for that. It’s very easy. I have used lamda expression to get first 3 rows.&lt;/p&gt;

&lt;pre class="brush: csharp; gutter: false; toolbar: false; smart-tabs: false;"&gt;private DataTable GetFirstThreeRowViaLinq(DataTable dataTable) {
            return dataTable.Rows.Cast&lt;system.data.datarow&gt;().Take(3).CopyToDataTable();
        }&lt;/pre&gt;
That’s it. Hope you liked it. Stay tuned more updates.. 

&lt;p&gt;Original blog post:&lt;a title="http://www.dotnetjalps.com/2013/01/how-to-get-n-row-from-datatable-in-csharp.html" href="http://www.dotnetjalps.com/2013/01/how-to-get-n-row-from-datatable-in-csharp.html"&gt;http://www.dotnetjalps.com/2013/01/how-to-get-n-row-from-datatable-in-csharp.html&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9766016" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>Lazy&lt;T&gt; in C# 4.0</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/04/lazy-lt-t-gt-in-c-4-0.aspx</link><pubDate>Thu, 03 Jan 2013 20:30:22 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9695273</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9695273</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9695273</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/04/lazy-lt-t-gt-in-c-4-0.aspx#comments</comments><description>&lt;p&gt;Before C# 4.0 there was no on demand initialization by default. So at the time of declaration we need to create a value or object will be null or we have to create on demand initialization via coding.. But with C# 4.0 we now have lazy class. As per &lt;a title="Lazy &amp;lt;T in c# 4.0" href="http://msdn.microsoft.com/en-us/library/dd642331.aspx" target="_blank"&gt;MSDN&lt;/a&gt; it support lazy initialization so it means if we use lazy class then it will initialize the object at the time of demand.&lt;/p&gt;  &lt;p&gt;It is very useful for UI responsiveness and other scenario's.&amp;#160; Lazy initialization delays certain initialization and&amp;#160; it’s improve the start-up time of a application. In the earlier framework if we need this kind of functionality we have to do it manually via coding but from C# 4.0 onwards it have Lazy&amp;lt;T&amp;gt; class. With the Help of this we can improve the responsiveness of C# application. Following is a simple example.&lt;/p&gt;  &lt;pre class="brush: csharp; gutter: false; toolbar: false; auto-links: false; smart-tabs: false;"&gt;using System;
namespace LazyExample
{
    class Program
    {
        static void Main(string[] args)
        {
            Lazy&amp;lt;Customer&amp;gt; lazyCustomer = new Lazy&amp;lt;Customer&amp;gt;();
            Console.WriteLine(string.Format(&amp;quot;Is customer initialized :{0}&amp;quot;, lazyCustomer.IsValueCreated));
            Customer customer = lazyCustomer.Value;
            Console.WriteLine(string.Format(&amp;quot;Is string value initialized :{0}&amp;quot;, lazyCustomer.IsValueCreated));
        }
    }
    public class Customer
    {
        public Customer()
        {
            Console.WriteLine(&amp;quot;Customer Intialized&amp;quot;);
        }
    }
}&lt;/pre&gt;

&lt;p&gt;As you can see in the above example, I have created a class called Customer with public constructor and in constructor it prints that Customer class is initialized and that constructor will be called. In the main method of console application I have created lazy customer object with the help of lazy in c#. I have used &lt;strong&gt;IsValueCreated &lt;/strong&gt;property to check whether value initialized or not and I am printing that values before the use and after use of lazy object.&lt;/p&gt;

&lt;p&gt;Let’s run example via pressing F5 and following is a output as expected.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/image_074DAE5B.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Lazy&amp;lt;T&amp;gt; in C# - Laziness in C#" border="0" alt="Lazy&amp;lt;T&amp;gt; in C# - Laziness in C#" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/image_thumb_4A3956FB.png" width="504" height="256" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see in above example first value was not initialize so IsValueCreated returned false. After use of customer its initialized and its returns true.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note: &lt;/strong&gt;C# lazy initialization is complex process internally so it will have a overhead if you define all the object as lazy, So whenever the object could take time to initialize at that time you can use Lazy in c#. For example reading a file will take more time due to IO operations as well if you are fetching data from the third party source or web service where it can take longer time to initialize then you can use lazy over there.&lt;/p&gt;

&lt;p&gt;That’s it. Hope you like it. Stay tuned for more..&amp;#160; &lt;/p&gt;

&lt;p&gt;Original blog: &lt;a title="http://www.dotnetjalps.com/2013/01/Lazy-class-in-Csharp-Lazy-Initialization-in-CSharp.html" href="http://www.dotnetjalps.com/2013/01/Lazy-class-in-Csharp-Lazy-Initialization-in-CSharp.html"&gt;http://www.dotnetjalps.com/2013/01/Lazy-class-in-Csharp-Lazy-Initialization-in-CSharp.html&lt;/a&gt;&lt;/p&gt;&lt;div class="wlWriterHeaderFooter" style="margin:0px; padding:0px 0px 0px 0px;"&gt;&lt;div class="shoutIt"&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http%3a%2f%2fweblogs.asp.net%2fjalpeshpvadgama%2farchive%2f2013%2f01%2f04%2flazy-lt-t-gt-in-c-4-0.aspx&amp;amp;title=Lazy%3cT%3e+in+C%23+4.0"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http://weblogs.asp.net/jalpeshpvadgama/archive/2013/01/04/lazy-lt-t-gt-in-c-4-0.aspx" style="border:0px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9695273" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>Lock keyword in C#</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/30/lock-keyword-in-c.aspx</link><pubDate>Sun, 30 Dec 2012 11:08:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9674991</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9674991</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9674991</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/30/lock-keyword-in-c.aspx#comments</comments><description>&lt;p&gt;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 become quite essential in any programming language.&lt;/p&gt;  &lt;p&gt;Let’s consider a scenario. We are having a small firm of computers and each computer is shared by two employees and they need to use computer for putting their sales data in excel sheet. So they can not work together at same time and one has to work and other has to wait till first one complete the work. Same situation can be occurred in programming in where we are using same resource for multiple thread.&lt;/p&gt;  &lt;p&gt;C# provides locking mechanism via &lt;strong&gt;lock&lt;/strong&gt; keyword. It restricts code from being executed by more then one thread at a time. That is the most reliable way of doing multi threading programming. &lt;/p&gt;  &lt;p&gt;&lt;a title="Lock keyword in c#" href="http://www.dotnetjalps.com/2012/12/Lock-keyword-statement-in-csharp-to-make-code-threadsafe.html" target="_blank"&gt;Read More&amp;gt;&amp;gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="wlWriterHeaderFooter" style="margin:0px; padding:0px 0px 0px 0px;"&gt;&lt;div class="shoutIt"&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http%3a%2f%2fweblogs.asp.net%2fjalpeshpvadgama%2farchive%2f2012%2f12%2f30%2flock-keyword-in-c.aspx&amp;amp;title=Lock+keyword+in+C%23"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/30/lock-keyword-in-c.aspx" style="border:0px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9674991" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_23002E00_NET/default.aspx">C#.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>Where I can find SQL generated by Linq-To-SQL</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/21/where-i-can-find-sql-generated-by-linq-to-sql.aspx</link><pubDate>Thu, 20 Dec 2012 19:40:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9618805</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9618805</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9618805</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/21/where-i-can-find-sql-generated-by-linq-to-sql.aspx#comments</comments><description>&lt;p&gt;Yesterday I have written a blog post about &lt;a title="Where I can find SQL Generated by Entity Framework?" href="http://www.dotnetjalps.com/2012/12/Where-I-can-find-SQL-Generated-by-Entity-framework.html" target="_blank"&gt;Where I can find SQL Generated by Entity Framework?&lt;/a&gt; and same day I got request from one of the our reader &lt;em&gt;Ramesh&lt;/em&gt; that &lt;strong&gt;&lt;em&gt;how I can find SQL generated by Linq-To-SQL?&lt;/em&gt;&lt;/strong&gt;. I thought its a good idea to write a blog post to share amongst all who need this instead of reply in comments.&amp;#160; In this post I am going to explain how we can get SQL generated by Linq-To-SQL.&lt;/p&gt;  &lt;p&gt;For this post I am going to use same table like following. A customer table with two columns CustomerId and CustomerName.&lt;/p&gt;  &lt;p&gt;&lt;img title="How to get SQL staement generated by Linq-To-SQL" alt="How to get SQL staement generated by Linq-To-SQL" src="http://lh5.ggpht.com/-S0mbenjoEMM/UNIRQL8eeRI/AAAAAAAABpU/7Jte9DxoEjc/CustomerTable_thumb%25255B12%25255D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;p&gt;Now we have already have table to its time to create a Linq-To-SQL dbml file.&lt;/p&gt;  &lt;p&gt;&lt;a title="How I can find SQL Generated by Linq-To-SQL" href="http://www.dotnetjalps.com/2012/12/Where-I-can-find-SQL-generated-by-Linq-To-SQL.html" target="_blank"&gt;Read More&lt;/a&gt;    &lt;br /&gt;&lt;/p&gt;&lt;div class="wlWriterHeaderFooter" style="margin:0px; padding:0px 0px 0px 0px;"&gt;&lt;div class="shoutIt"&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http%3a%2f%2fweblogs.asp.net%2fjalpeshpvadgama%2farchive%2f2012%2f12%2f21%2fwhere-i-can-find-sql-generated-by-linq-to-sql.aspx&amp;amp;title=Where+I+can+find+SQL+generated+by+Linq-To-SQL"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/21/where-i-can-find-sql-generated-by-linq-to-sql.aspx" style="border:0px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9618805" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_23002E00_NET/default.aspx">C#.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/Linq/default.aspx">Linq</category></item><item><title>Where I can find SQL Generated by Entity framework?</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/20/where-i-can-find-sql-generated-by-entity-framework.aspx</link><pubDate>Wed, 19 Dec 2012 19:55:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9613281</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9613281</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9613281</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/20/where-i-can-find-sql-generated-by-entity-framework.aspx#comments</comments><description>&lt;blockquote&gt;&lt;/blockquote&gt;  &lt;p&gt;Few days back I was optimizing the performance with Entity framework and Linq queries and I was using &lt;a title="Optimize performance of entity frmaework query" href="http://www.linqpad.net/" target="_blank"&gt;LinqPad&lt;/a&gt; and looking SQL generated by the Linq or entity framework queries. After some point of time I got the same question in mind that how I can find the SQL Statement generated by Entity framework?. &lt;/p&gt;  &lt;p&gt;After some struggling I have managed to found the way of finding SQL Statement so I thought it would be a great idea to write a post about&amp;#160; same and share my knowledge about that. So in this post I will explain how to find SQL statements generated Entity framework queries. &lt;/p&gt;  &lt;p&gt;&lt;a title="Where I can find SQL Generated by Entity framework?" href="http://www.dotnetjalps.com/2012/12/Where-I-can-find-SQL-Generated-by-Entity-framework.html" rel=" " target="_blank"&gt;Read More on dotnetjalps.com&lt;/a&gt;&lt;/p&gt;&lt;div class="wlWriterHeaderFooter" style="margin:0px; padding:0px 0px 0px 0px;"&gt;&lt;div class="shoutIt"&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http%3a%2f%2fweblogs.asp.net%2fjalpeshpvadgama%2farchive%2f2012%2f12%2f20%2fwhere-i-can-find-sql-generated-by-entity-framework.aspx&amp;amp;title=Where+I+can+find+SQL+Generated+by+Entity+framework%3f"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/20/where-i-can-find-sql-generated-by-entity-framework.aspx" style="border:0px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9613281" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/Entity+Framework/default.aspx">Entity Framework</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/EF4.0/default.aspx">EF4.0</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/EntityFramework/default.aspx">EntityFramework</category></item><item><title>Caller Info Attributes in C# 5.0</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/18/caller-info-attributes-in-c-5-0.aspx</link><pubDate>Mon, 17 Dec 2012 19:13:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9602766</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9602766</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9602766</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/18/caller-info-attributes-in-c-5-0.aspx#comments</comments><description>&lt;p&gt;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 help any programmer in tracing, debugging and diagnostic of any application.&lt;/p&gt;  &lt;p&gt;With the help of Caller Information we can get following information over there.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;strong&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.callerfilepathattribute.aspx" target="_blank"&gt;CallerFilePathAttribute&lt;/a&gt;&lt;/strong&gt;: With help of&amp;#160; this attribute we can get &lt;em&gt;full path of source file&lt;/em&gt; that contains caller. This will be file path from which contains caller at compile time. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;&lt;a title="Caller Line Number Attribute in C# 5.0" href="http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.callerlinenumberattribute.aspx" target="_blank"&gt;CallerLineNumberAttribute&lt;/a&gt;&lt;/strong&gt;:&amp;#160; With the help of this attribute we can get &lt;em&gt;line number of source file&lt;/em&gt; which the method is called. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;&lt;a title="Caller Member Name Attribute in C# 5.0" href="http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.callermembernameattribute.aspx" target="_blank"&gt;CallerMemberNameAttribute&lt;/a&gt;: &lt;/strong&gt;With the help of this attribute we can get the &lt;em&gt;method or property name&lt;/em&gt; of the caller. &lt;/li&gt; &lt;/ol&gt;  &lt;h1&gt;&lt;/h1&gt;  &lt;p&gt;&lt;a title="Caller Info Attributes in C# 5.0" href="http://www.dotnetjalps.com/2012/12/Caller-Info-Attributes-in-CSharp-5-0.html" target="_blank"&gt;Read more&lt;/a&gt;&lt;/p&gt;&lt;div class="wlWriterHeaderFooter" style="margin:0px; padding:0px 0px 0px 0px;"&gt;&lt;div class="shoutIt"&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http%3a%2f%2fweblogs.asp.net%2fjalpeshpvadgama%2farchive%2f2012%2f12%2f18%2fcaller-info-attributes-in-c-5-0.aspx&amp;amp;title=Caller+Info+Attributes+in+C%23+5.0"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/18/caller-info-attributes-in-c-5-0.aspx" style="border:0px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9602766" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_23002E00_NET/default.aspx">C#.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>Parallel task in C# 4.0</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/16/parallel-task-in-c-4-0.aspx</link><pubDate>Sun, 16 Dec 2012 06:41:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9593039</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9593039</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9593039</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/16/parallel-task-in-c-4-0.aspx#comments</comments><description>&lt;p&gt;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 I write should take care of this.C# does provide that kind of facility to write code for multi core CPU with task parallel library. We will explore that in this post.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://weblogs.asp.net/blogs/jalpeshpvadgama/ParallelCPU_6CF83980.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Parrallel Task in C#" border="0" alt="Parrallel Task in C#" src="http://weblogs.asp.net/blogs/jalpeshpvadgama/ParallelCPU_thumb_45A9B67F.png" width="504" height="562" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Parallel Task in C# 4.0" href="http://www.dotnetjalps.com/2012/12/Parallel-task-with-task-parallel-library-in-Csharp.html" rel="enclosure" target="_blank"&gt;Read More&lt;/a&gt;&lt;/p&gt;&lt;div class="wlWriterHeaderFooter" style="margin:0px; padding:0px 0px 0px 0px;"&gt;&lt;div class="shoutIt"&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http%3a%2f%2fweblogs.asp.net%2fjalpeshpvadgama%2farchive%2f2012%2f12%2f16%2fparallel-task-in-c-4-0.aspx&amp;amp;title=Parallel+task+in+C%23+4.0"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/16/parallel-task-in-c-4-0.aspx" style="border:0px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9593039" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/C_23002E00_NET/default.aspx">C#.NET</category></item><item><title>Dynamic URL of asp.net web service with web reference</title><link>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/02/dynamic-url-of-asp-net-web-service-with-web-reference.aspx</link><pubDate>Sun, 02 Dec 2012 18:24:18 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9503419</guid><dc:creator>Jalpesh P. Vadgama</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/rsscomments.aspx?PostID=9503419</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/jalpeshpvadgama/commentapi.aspx?PostID=9503419</wfw:comment><comments>http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/02/dynamic-url-of-asp-net-web-service-with-web-reference.aspx#comments</comments><description>&lt;p&gt;It’s been a while I am writing this. But never late.. So I am writing this. Before some time one of friend asked about the URL of web service when we add reference. So I am writing this. Some of you may find this very basic but still many of people does not know this that’s why I am writing this.&lt;/p&gt;  &lt;p&gt;In today’s world we have so many servers like development, preproduction and production etc. and for all the server location or URL of web service will be different.But with asp.net when you add a web reference to your web application it’s create a web reference settings in web.config where you can change this path. So it’s very easy to just change that path and you don’t have to add web reference again.&lt;/p&gt;  &lt;p&gt;&lt;a title="Dynamic URL of asp.net web service with web reference" href="http://www.dotnetjalps.com/2012/12/Dynamic-URL-of-asp-net-web-service-with-web-reference.html" rel="tag" target="_blank"&gt;Read More&lt;/a&gt;&lt;/p&gt;&lt;div class="wlWriterHeaderFooter" style="margin:0px; padding:0px 0px 0px 0px;"&gt;&lt;div class="shoutIt"&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http%3a%2f%2fweblogs.asp.net%2fjalpeshpvadgama%2farchive%2f2012%2f12%2f02%2fdynamic-url-of-asp-net-web-service-with-web-reference.aspx&amp;amp;title=Dynamic+URL+of+asp.net+web+service+with+web+reference"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http://weblogs.asp.net/jalpeshpvadgama/archive/2012/12/02/dynamic-url-of-asp-net-web-service-with-web-reference.aspx" style="border:0px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9503419" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/jalpeshpvadgama/archive/tags/WebService/default.aspx">WebService</category></item></channel></rss>