I've searched high and low for a list of the contents of .net 3.0 and 3.5 framework, since i've been programming using old technologies such as hashtables instead of a dictionary(newer technology).
I've been having a bit of a swat up and wondered where I can find a list of all the latest capabilities of C# and the .Net framework so that I can start getting my head round how to use some of the stuff.
Help would be greatly appreciated!
To be honest, wikipedia does a reasonable job here...
.NET 3.0 introduces:
.NET 3.5 introduces:
HashSet<T>
, Action<...>
, Func<...>
, Expression<...>
, Lookup<,>
.NET 3.5 SP 1 introduces:
EDIT: (jonskeet) The C# page has a similar layout, showing which versions introduced which features.
"latest capabilities of C#"...
Implicitly Typed Local Variables:
The compiler derives the type from the initialized value.
// Implicitly typed local variables.
var myInt = 0;
var myBool = true;
var myString = "Time, marches on...";
These are greatly useful while using with LINQ.
Automatic properties:
No need to write the entire property syntax.
class Car
{
// Automatic property syntax.
public string PetName { get; set; }
}
Extension Methods:
This technique can be quite helpful when you need to inject new functionality into types for which you do not have an existing code base.
More information on Scott Gu's blog here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With