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)

PPT
A Lap Around Visual Studio 2010
PPTX
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
PPTX
VS 2010 codename Rosario
DOCX
ID E's features
PPT
Grasping The LightSwitch Paradigm
PPT
devLink - VB IDE Tips and Tricks for Visual Studio 2010
PDF
Visual Studio 2008 Overview
PPTX
How to become a Super Productive Developer
PDF
PPTX
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
PDF
Dotnet basics
PPTX
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
PPTX
What's New in Visual Studio 2010
PDF
Membangun Desktop App
DOC
Csharp
PPTX
Exploring Adobe Flex
PPTX
Visual BAsic Softwares intended for ICT students
PPT
WPF Applications, It's all about XAML these days
PPTX
Better User Experience with .NET
PPTX
Vb essentials
A Lap Around Visual Studio 2010
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
VS 2010 codename Rosario
ID E's features
Grasping The LightSwitch Paradigm
devLink - VB IDE Tips and Tricks for Visual Studio 2010
Visual Studio 2008 Overview
How to become a Super Productive Developer
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
Dotnet basics
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
What's New in Visual Studio 2010
Membangun Desktop App
Csharp
Exploring Adobe Flex
Visual BAsic Softwares intended for ICT students
WPF Applications, It's all about XAML these days
Better User Experience with .NET
Vb essentials
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
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPT
Teaching material agriculture food technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Modernizing your data center with Dell and AMD
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
madgavkar20181017ppt McKinsey Presentation.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cuic standard and advanced reporting.pdf
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
CIFDAQ's Market Insight: SEC Turns Pro Crypto
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Teaching material agriculture food technology
Understanding_Digital_Forensics_Presentation.pptx
NewMind AI Monthly Chronicles - July 2025
NewMind AI Weekly Chronicles - August'25 Week I
Modernizing your data center with Dell and AMD
GamePlan Trading System Review: Professional Trader's Honest Take
Chapter 3 Spatial Domain Image Processing.pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
AI And Its Effect On The Evolving IT Sector In Australia - Elevate

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/