Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

What’s new in Visual Studio 2010

Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Chargement dans…3
×

Consultez-les par la suite

1 sur 52 Publicité

Plus De Contenu Connexe

Publicité

Similaire à What’s new in Visual Studio 2010 (20)

Publicité

Plus récents (20)

What’s new in Visual Studio 2010

  1. 1. Sandun Angelo Perera Geveo Australasia 18th November, 2009
  2. 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
  3. 3. Beta 1 Beta 2
  4. 4. Common Language Runtime Statically-Typed C# VB Ruby Python Dynamically-Typed Common Language Runtime Statically-Typed C# VB Ruby Python Dynamically-Typed Dynamic Language Runtime
  5. 5. Framework and Application Modules Asynchronous Agents Library Optimize the asynchronous executions Parallel Pattern Library Support parallel computing of resourcesSchedule tasks at runtime Manage computing resources
  6. 6. v2.0
  7. 7.  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/
  8. 8. static void Main(string[] args) { Console.WriteLine(“Hello Geveo!”); Console.ReadLine(); }
  9. 9. Snippets support available for Code behind, HTML and JavaScript
  10. 10.  Ctrl + Wheel for Zoom In/Out
  11. 11. C# 1.0 C# 2.0 C# 3.0 Managed Code Generics LINQ C# 4.0 Dynamic
  12. 12. VB1 – VB3 VB4 – VB6 VB7 – VB9 Windows programming made easy Components made easy Power and simplicity for .NET VB10 Continuing the trend
  13. 13.  Late binding support  Optional parameters and named parameters  Improved COM Interop  Covariance and Contravariance
  14. 14.  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)
  15. 15.  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.
  16. 16. 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.
  17. 17. 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.
  18. 18.  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.
  19. 19. F1
  20. 20. Improved performance by asynchronous loading of COM tab Also the Garbage Collector’s performance has increased, this also affected by the concurrency architecture which use parallelism
  21. 21.  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
  22. 22.  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
  23. 23. 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)
  24. 24.  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 ?
  25. 25. 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.
  26. 26. 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
  27. 27.  Old Redirect() method will temporary redirect, so has round trips when accessing previous URL’s  New RedirectPermanent() method will make the redirection permanent.
  28. 28.  Not for InProc mode  Using GZipStream  Serialized communication
  29. 29.  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
  30. 30. http://SandunAngelo.blogspot.com/
  31. 31.  MSDN › http://msdn.microsoft.com/en-us/library/bb386063%28VS.100%29.aspx  Channel9 › http://channel9.msdn.com/tags/.NET+Framework+4.0/  Blogs › http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4- series.aspx › http://geekswithblogs.net/sdorman/archive/2008/11/16/c-4.0-dynamic- programming.aspx › http://blogs.msdn.com/samng/archive/2008/10/29/dynamic-in-c.aspx

Notes de l'éditeur

  • Mostly useful in Windows development

×