2. Cool UI
Multi monitor support
Code optimized IDE
Framework and DLR
Parallel programming
Code pecker’s interest
What’s new in C# 4.0
UML support
Help system
Performance
ASP.net 4.0
13. A Functional Programming Language derived
from OCaml and the ML(meta language) family
of languages
Very good for compute-intensive problems,
highly parallel problems, and language-oriented
programming
http://channel9.msdn.com/tags/Erik+Meijer/
25. VB1 – VB3
VB4 – VB6
VB7 – VB9
Windows
programming
made easy
Components
made easy
Power and
simplicity
for .NET
VB10
Continuing
the trend
26. Late binding support
Optional parameters and named parameters
Improved COM Interop
Covariance and Contravariance
27. The dynamic type is just a regular type. It tells the
compiler that everything to do with that object or
expression should be done dynamically. (≈var)
28. Optional parameter has a default value as part of
its definition.
If argument not passed for optional parameter
then the default value will be used.
Optional parameters must be declared after all
the normal parameters.
29.
30.
31. This example demonstrate how
delegates can be used with methods
that have return types that are derived
from the return type in the delegate
signature. The data type returned by
SecondHandler is of type Dog, which
derived from the Mammals type that is
defined in the delegate.
Covariance permits a method to have a
more derived return type than what is
defined in the delegate.
32. Now you can create an event handler that accepts an EventArgs input parameter and
use it with the Button.MouseClick event that sends a MouseEventArgs type as a
parameter, and also with TextBox.KeyDown event that sends a KeyEventArgs
parameter.
33. Generate From Usage
› The Generate From Usage feature enables you to use classes and
members before you define them. Without leaving your current
location in code, you can generate a stub for a class, constructor,
method, property, field, or enum that you want to use but have not
yet defined. This minimizes interruption to your workflow.
40. More control over ViewState
Enhanced web standards and accessibility
Support for new browsers & devices
(Chrome/Blackberry/SmartPhone)
Way to define browser capabilities
ClientIDMode for scripting (AutoID/Static/Predictable)
PersistedSelection row selection for data controls
(came with DynamicData in 3.5SP1)
URL routing
41. FormView / ListView controls enhancement
Validation controls enhancement
Enhanced support for web standards and
accessibility
Promotion for CSS (Update / UpdateProgress panels)
QueryExtender control for filter data
Backward compatibility in control rendering
New
42. The new .NET 4 machine.config file now already
registered all of the ASP.NET tag sections, handlers
and modules that we’ve added over the years,
including the functionality for:
ASP.NET AJAX
ASP.NET Dynamic Data
ASP.NET Routing (which can now be used for both ASP.NET
WebForms and ASP.NET MVC)
ASP.NET Chart Control (which now built-into ASP.NET V4)
43. Introduced with ASP.NET 3.5 SP1
With ASP.NET 4.0, URLs like above can now be
mapped to both ASP.NET MVC Controller classes,
as well as ASP.NET Web Forms based pages.
http://www.mysite.com/products.aspx?category=software
http://www.mysite.com/products/software
What is URL routing ?
44.
45. The first parameter provides a friendly name for the route, and the second
specifies the URL format to match. The third parameter, though, points to a
Products.aspx page to handle the URL instead of a controller class. You can
optionally specify additional parameters to MapPageRoute() that take advantage
of features like “route constraints” and provide “default values for parameters”
just like you can with ASP.NET MVC based route registrations.
46. Within the Products.aspx page you can then write code like below that uses the
new Page.RouteData property in ASP.NET 4.0 to retrieve the “category”
parameter value mapped using the /products/{category} URL filter, and then
databind the category products to display them:
Retrieving URL in code behind
47. Old Redirect() method will temporary redirect, so
has round trips when accessing previous URL’s
New RedirectPermanent() method will make the
redirection permanent.
48. Not for InProc mode
Using GZipStream
Serialized communication
49. Starter project templates
Searching and navigation in code
Code contracts
New data types
Thread Analysis
Auto-Start ASP.net application
WPF 4.0
AJAX 4.0
DynamicData
Windows development
Deployment