Friday, May 4, 2012

Visual Studio 2011 Beta First Review.

Note:This post be a part of Visual Studio 2012 feature series. As know Visual Studio 2011 beta known as Visual Studio 2012.

Before some days Microsoft has release visual studio 2011 beta and I have started playing with it. Have you played with it yet? If not then this series of post is for your.

I am basically a developer by heart. So out of latest offering from Microsoft  I am concentrating more on Visual studio 2011,ASP.NET 4.5,C# new features and ASP.NET MVC 4. So here we got let’s load visual studio 2011 beta.
Share:
Thursday, May 3, 2012

DotNetJalps 500th blog post- A milestone achieved.

This is my 500th blog post on this blog and I feel very proud writing this blog post. I am very passionate about blogging and I have been doing more than 5 years.  500th blog post a great achievement and on this occasion first all I would like to thank my family for continuous support they are providing support to maintain blog at regular interval.
Share:

Review of 70-562exam preparation kit from uCertify

Before some time I got an offer from uCertify to review their examination kit. I was lot busy this days so was able to do early but now I have completed review of it. So the first things to do is to download preparation  kit from their website. Here is the link from where I have downloaded this.

http://www.ucertify.com/exams/Microsoft/70-562-CSHARP.html
Share:
Friday, April 20, 2012

File Upload in ASP.NET MVC3

If you are a web developer you often need to upload file on the web server or database. In today’s post I am going explain how we can upload file in ASP.NET MVC 3 with razor syntax.

So, first thing we need to create a view that will contain the file upload control. I am going to use an existing asp.net mvc template for this demo. So I have just modified the default Index view like following.
Share:
Tuesday, April 17, 2012

Difference between SkipWhile and Where in linq

Before some time I have written a blog post about the SkipWhile operator and a reader of my blog asked me that we can do the same thing with Where also but there is a difference between this two. So In this post I am going to explain you difference between those two.

Where operator filters a list of collection based on condition. It will filter whole collection while SkipWhile will only skip those elements in list until condition is true and after that it will stop filtering of skipping.Now let’s take an example where we can see the difference between Where and SkipWhile. Following is a code for that.
Share:
Monday, April 16, 2012

Tuple in C# 4.0

C# 4.0 language includes a new feature called Tuple. Tuple provides us a way of grouping elements of different data type. That enables us to use it a lots places at practical world like we can store a coordinates of graphs etc.

In C# 4.0 we can create Tuple with Create method. This Create method offer 8 overload like following. So you can group maximum 8 data types with a Tuple. Followings are overloads of a data type.
  • Create(T1)- Which represents a tuple of size 1
  • Create(T1,T2)- Which represents a tuple of size 2
  • Create(T1,T2,T3) – Which represents a tuple of size 3
  • Create(T1,T2,T3,T4) – Which represents a tuple of size 4
  • Create(T1,T2,T3,T4,T5) – Which represents a tuple of size 5
  • Create(T1,T2,T3,T4,T5,T6) – Which represents a tuple of size 6
  • Create(T1,T2,T3,T4,T5,T6,T7) – Which represents a tuple of size 7
  • Create(T1,T2,T3,T4,T5,T6,T7,T8) – Which represents a tuple of size 8
Share:
Saturday, April 14, 2012

TakeWhile operator in linq

In this post I am going to explain TakeWhile Operator in details. TakeWhile is one of partitioning operator available in Linq. It will take sequence until condition becomes false.

Here is the example for that.

using System;
using System.Collections.Generic;
using System.Linq;
namespace Linq
{
class Program
{
  static void Main(string[] args)
  {
      int[] numbers ={10,9,8,7,6,5,4,3,2,1};

      foreach(var number in numbers.TakeWhile(n=>n>5))
      {
          Console.WriteLine(number);
      }
  }
}
}


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