Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 63339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:37:02+00:00 2026-05-10T18:37:02+00:00

I was browsing the Hidden Features of C# question and thought I would try

  • 0

I was browsing the Hidden Features of C# question and thought I would try out one of the features I was unfamiliar with. Unfortunately I use Visual Studio 2005 and the feature in question was introduced later. Is there a good list for new features in C# 3.0 (Visual Studio 2008) vs. C# 2.0 (Visual Studio 2005)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:37:02+00:00Added an answer on May 10, 2026 at 6:37 pm

    This is not a comprehensive list but these are some of my favorite new features of C# 3.0:

    New type initializers. Instead of saying this:

    Person person = new Person(); person.Name = 'John Smith'; 

    I can say this:

    Person person = new Person() { Name = 'John Smith' }; 

    Similarly, instead of adding items individually, I can initialize types that implement IEnumerable like this:

    List<string> list = new List<string> { 'foo', 'bar' };   

    The new syntax for lambda expressions is also nice. Instead of typing this:

    people.Where(delegate(person) { return person.Age >= 21;); 

    I can type this:

    people.Where(person => person.Age >= 21 ); 

    You can also write extension methods to built in types:

    public static class StringUtilities {     public static string Pluralize(this word)     {        ...     } } 

    Which allows something like this:

    string word = 'person'; word.Pluralize(); // Returns 'people' 

    And finally. Anonymous types. So you can create anonymous classes on the fly, like this:

    var book = new { Title: '...', Cost: '...' }; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Browsing through a Currency in C++0x book and thought I would give the sample
While browsing the net I noticed some ad ask me if I would like
I am browsing the code of a large open source application and would like
For browsing C++ code when I use ctags in vim, it jumps to the
Browsing through the git documentation, I can't see anything analogous to SVN's commit hooks
Browsing the Internet, I found the new Ample SDK JavaScript framework. From their about
browsing some html code I find a text input coded as: <input type=text name=Email<%=orderRow.ID
While browsing with Chrome, I noticed that it responds extremely fast (in comparison with
From browsing on this site and elsewhere, I've learned that serving websites as XHTML
When browsing ASP.NET MVC source code in codeplex , I found it is common

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.