Difference between 2.0 & 3.0

Last post 04-10-2009 9:41 AM by TATWORTH. 5 replies.

Sort Posts:

  • Difference between 2.0 & 3.0

    07-07-2008, 1:39 PM
    • Member
      5 point Member
    • Snuckles
    • Member since 07-05-2008, 2:52 PM
    • Posts 9

    Is there an itemized list on the improvements made in 3.0 beta 1? 

    Or should I just start my website with 2.0?

    Thanks.

  • Re: Difference between 2.0 & 3.0

    07-07-2008, 1:54 PM
    • Participant
      1,099 point Participant
    • NavaidAkhtar
    • Member since 01-14-2008, 5:53 PM
    • Islamabad - Pakistan
    • Posts 171
    There are several .NET language enhancements to be introduced with Visual Studio 2008 including implicitly typed variables, extension methods, anonymous types, object initializers, collection initializers and automatic properties. These language enhancements, along with features like generics, are critical to the use of some of the new features, such as LINQ with the ADO.NET Entity Framework. What can be confusing is that these features are often referred to in the same conversation as LINQ. Because of this relation by association, you may be led to believe that these features are part of LINQ. They are not; they are part of the .NET Framework 3.5 and the VB 9 and C# 3.0 languages. They are very valuable in their own rights as well as playing a huge role for LINQ. Key language features including · Automatic Property setters/getters· Object Initializers· Collection Initializers· Extension Methods· Implicitly Typed Variable· Anonymous Types Automatic Property setters/getters:public class Customer    {                  public int CustomerID { get; set; }                  public string CompanyName { get; set; }                  public Address BusinessAddress { get; set; }                  public string Phone { get; set; }    } Object Initializers:Customer customer = new Customer                        {        CustomerID = 101,      CompanyName = "Foo Company",                                   BusinessAddress = new Address { City="Somewhere", State="FL" },                                   Phone = "555-555-1212"                         }; Collection Initializers:List<Customer> custList = new List<Customer>             {        new Customer {ID = 101, CompanyName = "Foo Company"},                      new Customer {ID = 102, CompanyName = "Goo Company"},                      new Customer {ID = 103, CompanyName = "Hoo Company"}             }; Extension Methods:public static class MyExtensions    {                  public static int Cube(this int someNumber)                  {                               return someNumber ^ 3;                  }    }int oneSide = 3;            int theCube = oneSide.Cube(); // Returns 27 Anonymous Types And Implicitly Typed Variable:var dog = new           {                    Breed = "Cocker Spaniel",                                                  Coat = "black",                    FerocityLevel = 1           };
    Regards,
    Naveed Akhtar

    Microsoft Certified Professional Developer
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    Please remember to click “Mark as Answer”, if it is solution to your Problem
  • Re: Difference between 2.0 & 3.0

    07-07-2008, 2:02 PM
    • Member
      5 point Member
    • Snuckles
    • Member since 07-05-2008, 2:52 PM
    • Posts 9

    I'm confused by your response.  I was wondering about the enhancements made in V3 beta 1 of the club starter kit over V2.  I'm pretty new at this and was also wondering if it would be best for me just to start with V2 leaving V3 alone since it's in a beta state.

     Thanks.

  • Re: Difference between 2.0 & 3.0

    07-07-2008, 7:12 PM
    • Member
      5 point Member
    • Snuckles
    • Member since 07-05-2008, 2:52 PM
    • Posts 9

    This question has 49 views, yet no one is willing to offer their opinion?

  • Re: Difference between 2.0 & 3.0

    04-09-2009, 11:23 AM
    • Participant
      1,099 point Participant
    • NavaidAkhtar
    • Member since 01-14-2008, 5:53 PM
    • Islamabad - Pakistan
    • Posts 171

    Hi Snuckles,

    Actually, answer to you question is 1 - 2 hrs long discussion or 2 - 3 pages of material. Please review he links for reference. I hope these will help you.

    Also one thing to mention that, move to ASP. 3.5, this has very cool and interesting enhacements.

    http://www.simple-talk.com/dotnet/.net-framework/.net-3.5-language-enhancements/

    try to intall .net 3.5 service pack 1, this will also give you new feature ASP.net entity model framework....

    Regards,
    Naveed Akhtar

    Microsoft Certified Professional Developer
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    Please remember to click “Mark as Answer”, if it is solution to your Problem
    Filed under: ,
  • Re: Difference between 2.0 & 3.0

    04-10-2009, 9:41 AM
    • All-Star
      62,924 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,303
    • TrustedFriends-MVPs

     >Or should I just start my website with 2.0?

    I have just seen your email. You should start with V 2.0. There is a team about to start work on a new version of CSK called CASK.

    Please see the web site at http://cask.codeplex.com/

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Page 1 of 1 (6 items)