SlideShare a Scribd company logo
New features of Microsoft Visual Studio 2010 By: Shahzad Sarwar  To: Development Team
Scope There is a very long list of features added by Microsoft in Visual Studio 2010. This presentation will cover only features of Visual studio Editor 2010 and C# language. Separate presentations will be required to touch features in WPF,LINQ,WCF, Windows workflow and other elements of .Net framework 4.0
Generate From Usage Trick is to first use class,its properies,its method , its constructor and then generate code on basis of usage by simply pressing CTRL + “.” several times. [Demo] Generating a Class from Usage Generating a Delegate Stub from Usage Generating an Interface Stub from Usage Generating New Types with Additional Options from Usage  ( General for all ) http://msdn.microsoft.com/en-us/library/dd409796.aspx
Intelliense Modes Use suggestion mode when classes and members are used before they are defined. In suggestion mode, when you type in the editor and then commit the entry, the text you typed is inserted into the code. When you commit an entry in completion mode, the highlighted entry in the members list is inserted into the code. To avoid this problem, press CTRL+ALT+SPACEBAR to switch to IntelliSense suggestion mode (as opposed to completion mode). http://msdn.microsoft.com/en-us/library/exbffbc2.aspx
Call Hierarchy window The new  Call Hierarchy window  helps you analyze your code and navigate within it. Declaration or an actual call, right-click it then and click  View Call Hierarchy  (or press CTRL+ALT+K). See  Go To Definition ,  Find All References , and  Add as New Root  for each member.
Navigate To option A quick search tool for symbols  Just press CTRL + “,” (or  click  Edit  and then  Navigate To ) to see the new  Navigate To  window.
Productivity Options Reference Highlighting Put the cursor on a symbol (method, property, variable, etc.), all instances of this symbol are automatically highlighted in the code editor. Navigate from one instance to another within a file by pressing CTRL+SHIFT+UP/DOWN ARROW. Box Selection and Multiline Editing Press ALT and then use your mouse or arrow keys to select the box area. Multiline box selection was there for delete from many versions of studio. But now insert,edit,replace is also supported. http://blogs.msdn.com/b/vseditor/archive/2009/05/25/the-new-box-selection-now-with-multi-line-editing.aspx
WPF Based GUI Moving Visual Studio to WPF helped to improve multiple-monitor support. moving Visual Studio to WPF helped to improve multiple-monitor support. Undock any window and rearrange everything according to your needs. Zoom: Press CTRL and use your mouse wheel to enlarge or decrease your font size.
Dynamic Support   Provides support for late binding to dynamic types by introducing a new type, dynamic. http://msdn.microsoft.com/en-us/library/dd264736.aspx http://blogs.msdn.com/b/csharpfaq/archive/tags/dynamic/ Difference b/w Object and Dynamic  main differences between  object  and  dynamic  – with  dynamic  you tell the compiler that the type of an object can be known only at run time, and the compiler doesn’t try to interfere. [ Sample Code/Demo] It is no more (no less) dangerous than the  object  keyword. Where to use: Perform so many cast operations that it makes your code almost unreadable. Situations when a simple cast is not enough and needs reflection methods, such as  InvokeMember  or  GetProperties . Enable scenarios that were either impossible or difficult, including interoperation with dynamic languages.  http://blogs.msdn.com/b/csharpfaq/archive/2010/01/25/what-is-the-difference-between-dynamic-and-object-keywords.aspx
Type Equivalence Support Can now deploy an application that has embedded type information instead of type information that is imported from a Primary Interop Assembly (PIA). If various versions of the runtime assembly are published, the application that contains the embedded type information can work with the various versions without having to be recompiled. http://msdn.microsoft.com/en-us/library/dd409610.aspx
Covariance and Contravariance Covariance enables you to use a more derived type than that specified by the generic parameter, whereas contravariance enables you to use a less derived type. This allows for implicit conversion of classes that implement variant interfaces and provides more flexibility for matching method signatures with variant delegate types. [Sample/Code] http://msdn.microsoft.com/en-us/library/ee207183.aspx
Lets have a meeting to discuss these new features. Must read the references of URL identified in presentation Best of luck for coding in new envirnment Keep visiting  http://softarchitect.wordpress.com/

More Related Content

PPTX
Debugging application using visual studio 2010 and intellitrace
PPTX
San Diego ASP.NET Meeting Oct 21st
PPT
Active x
PPTX
Coded UI: Hand Coding based on Page Object Model
PPTX
jQuery vs AJAX Control Toolkit
PPTX
Advanced Coded UI Testing
DOC
A cross referenced whitepaper on cloud computing
PDF
Bmi%20 case%20study
Debugging application using visual studio 2010 and intellitrace
San Diego ASP.NET Meeting Oct 21st
Active x
Coded UI: Hand Coding based on Page Object Model
jQuery vs AJAX Control Toolkit
Advanced Coded UI Testing
A cross referenced whitepaper on cloud computing
Bmi%20 case%20study

Similar to Software Architecture New Features of Visual Studio 2010 / .Net 4.0 - Part 1 - Editor And C# (20)

PPTX
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
PPT
A Lap Around Visual Studio 2010
PPTX
VS 2010 codename Rosario
PPTX
Visual Studio Tips and Tricks
PPTX
Coding Like the Wind - Tips and Tricks for the Microsoft Visual Studio 2012 C...
PDF
Membangun Desktop App
PPTX
Visual BAsic Softwares intended for ICT students
PPTX
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
PDF
Visual Studio 2010 - Microsoft Visual C# Key Bindings
DOC
C Sharp 4 0 Specification
PPT
devLink - VB IDE Tips and Tricks for Visual Studio 2010
PPTX
.Net Framework 2 fundamentals
PPTX
Vb essentials
PPTX
Whats New In C Sharp 4 And Vb 10
PPTX
Visual Studio 2010 and .NET 4.0 Overview
PPTX
Exploring Visual Studio 2010
PPTX
Vb.net ide
PDF
2.Getting Started with C#.Net-(C#)
PPTX
PPT
New in the Visual Studio 2012 IDE
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
A Lap Around Visual Studio 2010
VS 2010 codename Rosario
Visual Studio Tips and Tricks
Coding Like the Wind - Tips and Tricks for the Microsoft Visual Studio 2012 C...
Membangun Desktop App
Visual BAsic Softwares intended for ICT students
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
Visual Studio 2010 - Microsoft Visual C# Key Bindings
C Sharp 4 0 Specification
devLink - VB IDE Tips and Tricks for Visual Studio 2010
.Net Framework 2 fundamentals
Vb essentials
Whats New In C Sharp 4 And Vb 10
Visual Studio 2010 and .NET 4.0 Overview
Exploring Visual Studio 2010
Vb.net ide
2.Getting Started with C#.Net-(C#)
New in the Visual Studio 2012 IDE
Ad

More from Shahzad (20)

DOC
Srs sso-version-1.2-stable version-0
DOCX
Srs sso-version-1.2-stable version
DOCX
Exploration note - none windows based authentication for WCF
DOCX
To study pcms pegasus erp cargo management system-release-7 from architectu...
DOCX
To study pcms pegasus erp cargo management system-release-6 from architectu...
PPT
Pakistan management
PPS
Corporate lessons
DOC
What is future of web with reference to html5 will it devalue current present...
DOC
Software architecture to analyze licensing needs for pcms- pegasus cargo ma...
DOC
Software architecture case study - why and why not sql server replication
PPT
From Windows Presentation Foundation To Silverlight
DOC
To Study The Tips Tricks Guidelines Related To Performance Tuning For N Hib...
DOC
To Study E T L ( Extract, Transform, Load) Tools Specially S Q L Server I...
DOC
To Study E T L ( Extract, Transform, Load) Tools Specially S Q L Server I...
DOC
To Analyze Cargo Loading Optimization Algorithm
DOC
DOC
Whitepaper To Study Filestream Option In Sql Server
DOC
White Paper On ConCurrency For PCMS Application Architecture
DOC
Case Study For Replication For PCMS
PPT
Data Structure In C#
Srs sso-version-1.2-stable version-0
Srs sso-version-1.2-stable version
Exploration note - none windows based authentication for WCF
To study pcms pegasus erp cargo management system-release-7 from architectu...
To study pcms pegasus erp cargo management system-release-6 from architectu...
Pakistan management
Corporate lessons
What is future of web with reference to html5 will it devalue current present...
Software architecture to analyze licensing needs for pcms- pegasus cargo ma...
Software architecture case study - why and why not sql server replication
From Windows Presentation Foundation To Silverlight
To Study The Tips Tricks Guidelines Related To Performance Tuning For N Hib...
To Study E T L ( Extract, Transform, Load) Tools Specially S Q L Server I...
To Study E T L ( Extract, Transform, Load) Tools Specially S Q L Server I...
To Analyze Cargo Loading Optimization Algorithm
Whitepaper To Study Filestream Option In Sql Server
White Paper On ConCurrency For PCMS Application Architecture
Case Study For Replication For PCMS
Data Structure In C#
Ad

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
KodekX | Application Modernization Development
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
MYSQL Presentation for SQL database connectivity
KodekX | Application Modernization Development
Digital-Transformation-Roadmap-for-Companies.pptx
Understanding_Digital_Forensics_Presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25 Week I
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction

Software Architecture New Features of Visual Studio 2010 / .Net 4.0 - Part 1 - Editor And C#

  • 1. New features of Microsoft Visual Studio 2010 By: Shahzad Sarwar To: Development Team
  • 2. Scope There is a very long list of features added by Microsoft in Visual Studio 2010. This presentation will cover only features of Visual studio Editor 2010 and C# language. Separate presentations will be required to touch features in WPF,LINQ,WCF, Windows workflow and other elements of .Net framework 4.0
  • 3. Generate From Usage Trick is to first use class,its properies,its method , its constructor and then generate code on basis of usage by simply pressing CTRL + “.” several times. [Demo] Generating a Class from Usage Generating a Delegate Stub from Usage Generating an Interface Stub from Usage Generating New Types with Additional Options from Usage ( General for all ) http://msdn.microsoft.com/en-us/library/dd409796.aspx
  • 4. Intelliense Modes Use suggestion mode when classes and members are used before they are defined. In suggestion mode, when you type in the editor and then commit the entry, the text you typed is inserted into the code. When you commit an entry in completion mode, the highlighted entry in the members list is inserted into the code. To avoid this problem, press CTRL+ALT+SPACEBAR to switch to IntelliSense suggestion mode (as opposed to completion mode). http://msdn.microsoft.com/en-us/library/exbffbc2.aspx
  • 5. Call Hierarchy window The new Call Hierarchy window helps you analyze your code and navigate within it. Declaration or an actual call, right-click it then and click View Call Hierarchy (or press CTRL+ALT+K). See Go To Definition , Find All References , and Add as New Root for each member.
  • 6. Navigate To option A quick search tool for symbols Just press CTRL + “,” (or click Edit and then Navigate To ) to see the new Navigate To window.
  • 7. Productivity Options Reference Highlighting Put the cursor on a symbol (method, property, variable, etc.), all instances of this symbol are automatically highlighted in the code editor. Navigate from one instance to another within a file by pressing CTRL+SHIFT+UP/DOWN ARROW. Box Selection and Multiline Editing Press ALT and then use your mouse or arrow keys to select the box area. Multiline box selection was there for delete from many versions of studio. But now insert,edit,replace is also supported. http://blogs.msdn.com/b/vseditor/archive/2009/05/25/the-new-box-selection-now-with-multi-line-editing.aspx
  • 8. WPF Based GUI Moving Visual Studio to WPF helped to improve multiple-monitor support. moving Visual Studio to WPF helped to improve multiple-monitor support. Undock any window and rearrange everything according to your needs. Zoom: Press CTRL and use your mouse wheel to enlarge or decrease your font size.
  • 9. Dynamic Support Provides support for late binding to dynamic types by introducing a new type, dynamic. http://msdn.microsoft.com/en-us/library/dd264736.aspx http://blogs.msdn.com/b/csharpfaq/archive/tags/dynamic/ Difference b/w Object and Dynamic main differences between object and dynamic – with dynamic you tell the compiler that the type of an object can be known only at run time, and the compiler doesn’t try to interfere. [ Sample Code/Demo] It is no more (no less) dangerous than the object keyword. Where to use: Perform so many cast operations that it makes your code almost unreadable. Situations when a simple cast is not enough and needs reflection methods, such as InvokeMember or GetProperties . Enable scenarios that were either impossible or difficult, including interoperation with dynamic languages. http://blogs.msdn.com/b/csharpfaq/archive/2010/01/25/what-is-the-difference-between-dynamic-and-object-keywords.aspx
  • 10. Type Equivalence Support Can now deploy an application that has embedded type information instead of type information that is imported from a Primary Interop Assembly (PIA). If various versions of the runtime assembly are published, the application that contains the embedded type information can work with the various versions without having to be recompiled. http://msdn.microsoft.com/en-us/library/dd409610.aspx
  • 11. Covariance and Contravariance Covariance enables you to use a more derived type than that specified by the generic parameter, whereas contravariance enables you to use a less derived type. This allows for implicit conversion of classes that implement variant interfaces and provides more flexibility for matching method signatures with variant delegate types. [Sample/Code] http://msdn.microsoft.com/en-us/library/ee207183.aspx
  • 12. Lets have a meeting to discuss these new features. Must read the references of URL identified in presentation Best of luck for coding in new envirnment Keep visiting http://softarchitect.wordpress.com/