Sunday, February 24, 2013

HTML editor enhancement in visual studio 2012

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.

Visual Studio 2012 feature series

Tag highlighting in Visual Studio 2012:

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.

HTMLTagHighLightVisualStudio2012
Share:
Saturday, February 23, 2013

Dotnetjalps.com- 551 blog posts and still counting!!

Today is one of the most important day for this blog as I am writing 551th blog post for this blog post. I can’t believe this..yeah this blog has completed 550 blog post.

People I like to thank:

First of all I like to thank my parents for whatever I am without them I could not even stand near where I am right now!!.  Then I would like to thank my wife without her support it would not have been possible to write this 551 blog post..So thank you sweetheart. My younger brother who has been moral support for me whenever I feel low or something was not working my way. My little champ who give me all energy that I have. Whole MVP community and friends where I learn so many things and off course readers of this blog. Without readers this blog is not there where it is right now!!

How I started blogging:

Actually  I was not serious about blogging I just show a blog with blogspot domain and for curiosity I have also registered a blog actually at that time I have registered it with my name like http://jalpesh.blogspot.com. At that time I have no idea that what blog is. After registering blog for first month I have not done anything and one one day I just goggled my name and I found my blog listing over there even if I have not written anything. I feel excited and decided I should write some thing and that’s how I have started writing.

Earlier I was just writing blog posts to make a repository of my code whatever I have done in my professional life. But when I came Ahmedabad at that time I understand the true value of blog and then I started taking it very seriously and started writing blog post that can help others and me to learn new things.

Then I brought my own domain last year http://www.dotnetjalps.com to create my own brand.

This blog is my journey of learning and I believe in this journey and continue to walk on it that’s why I have made title of this blog post still counting!!
Share:
Thursday, February 14, 2013

Default keyword in c#

In this post, I am going to explain about default keyword in c#.

Introduction:

As per MSDN default keyword in C# used to assign the default value of the type. In some situation its comes very handy where we don’t want to create object and directly assign the default value of it.

The basic syntax of default is default(T) where t is any reference type of value type and If T is a value type, whether it will be  a numeric value or struct.

Default Keyword usage:

We can use Default keyword in variety of cases.

Assigning value to nullable Type:


We can use it to assign default value to nullable types like below.
using System;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main() {
            int? i = default(int);
            Console.WriteLine(i);
        }
    }
}

Here output will be.
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews