C # features?

I searched high and low for the content list .net 3.0 and 3.5 framework, since I was programming old technologies like hashtables instead of a dictionary (newer technology).

I had a bit of swat and I was thinking where can I find a list of all the latest features of the C # and .Net framework so that I can start discussing how to use some things.

Help will be greatly appreciated!

+4
source share
9 answers

To be honest, wikipedia does a reasonable job here ...

In .NET 3.0, there are:

  • WCF - communication medium, hopefully replaces asmx and removes
  • WF - Workflow Structure for Consistent and Government Flows
  • WPF - replacing window forms

.NET 3.5 introduces:

  • LINQ
    • LINQ to SQL
    • LINQ to objects
    • HashSet<T> , Action<...> , Func<...> , Expression<...> , Lookup<,>
  • C # 3.0
  • some other minor tricks; -p

.NET 3.5 SP 1 introduces:

  • LINQ
    • Entity Framework
    • ADO.NET Data Services

EDIT: (jonskeet) The C # page has a similar layout showing which versions have introduced which features.

+6
source

"latest C # features" ...

Implicitly typed local variables:

The compiler infers the type from the initialized value.

 // Implicitly typed local variables. var myInt = 0; var myBool = true; var myString = "Time, marches on..."; 

This is very useful when used with LINQ.

Auto Properties:

No need to write all the syntax of the properties.

 class Car { // Automatic property syntax. public string PetName { get; set; } } 

Extension Methods:

This method can be very useful when you need to introduce new functions into types for which you do not have an existing code base.

More info on Scott Gug's blog here .

+3
source

Have you tried the .Net Framework page on MSDN ? The linked page is a good starting point for many new technologies, including the Windows Communication Foundation (WCF) and the Windows Presentation Foundation (WPF). For more information on base class libraries, this link on this page is a good starting point. You can also browse Phil Haack or Scott Guthrie blogs.

Information on C # - including upcoming features in C # 4.0 - the VisualC # page on MSDN is a good place to start.

+1
source

Lots of good training resources in this SO thread .

+1
source

Since you mentioned Dictionary , I will answer with the mentioned HashSet . I don’t think the Dictionary is actually new.

+1
source

I have two pages that may come in handy:

This is both C # and the .NET Framework, but they are a quick guide to changes from 1 to 2, and then from 2 to 3.

For a more detailed guide, I can't help but offer my own book, C # in depth . Again, this is primarily about language changes (without WPF, WCF, etc.), but hopefully you will like it :)

My versions page "briefly talks about the different versions of C # and .NET, so it may be useful to you.

+1
source

There is a good question in Qaru for the Hidden features of C # . It lists all the features in C #.

+1
source

I found this page with new features 3.0 and this one with new features 3.5.

0
source

As you talk about HashTables, which is almost deprecated after the 1.1 framework, you should start looking at what's new in framework 2 and C # 2.

Things like:

  • Generics
  • Impossible Types
  • Anonymous delegates

What's New in .NET Framework Version 2.0
What's New in C # 2.0 and the Compiler

0
source

All Articles