SlideShare a Scribd company logo
1 of 18
More C# Language Changes
and Updates
   http://www.LearnNowOnline.com




        Learn More @ http://www.learnnowonline.com
        Copyright © by Application Developers Training Company
Implementing New Language
Features
 • Demo




          Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Named and Optional
Parameters
 • Named parameters let you specify method
   parameters with a name
   • Can reorder names when calling
   • Names aren’t required
 • Optional parameters aren’t required
   • Must be last in signature




               Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Caller Information
•   Attributes for info about calling code
•   CallerFilePathAttribute
•   CallerLineNumberAttribute
•   CallerMemberNameAttribute




                Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Covariance and Contravariance
• Allow implicit conversion between types
• Apply to arrays delegates and generic type
  arguments
• Covariance: preserves type compatibilitiy
• Contravariance reverses type compatibility




             Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Embedded Interop Assemblies
• Traditional COM References Hold all Metadata
• Embedded Interop Assemblies only include the
  actual methods used
• No need to deploy Primary Interop Assembly




            Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
New Command Line Options
• The C# compiler has three new options
  • /link
  • /langversion
  • /appconfig




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Including Common .NET
Framework Classes
• Demo




         Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
New Types of Interest
• BigInteger
• Complex
• Tuple




               Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Lazy Initialization
• Lazy<T> allows just-in-time initialization
• Object not created until first used
• Can specify constructor and thread safety




             Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
New Generic Types
• ReadOnly interfaces for Lists, Collections, and
  Dictionarys
• New Set types




              Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Breaking Changes
• Demo




         Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Breaking Changes
•   Lambda Expressions
•   LINQ Expressions
•   Named Arguments
•   Overload Resolution




              Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Essential Skills
• Demo




         Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Debugging Tips
• Breakpoints
• Shortcut Keys
  • Ctrl+F10 – Step Over
  • Ctrl+F11 – Step Into
  • Shift+F11 – Step Out
• Move Cursor
• Run To

              Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Debugger Windows
•   Exceptions
•   Autos
•   Locals
•   Watch
•   Immediate
•   Call Stack


                 Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Building Code
•   Can build both Solutions and Projects
•   Build – only what needs to be built
•   Rebuild – forces build of all projects
•   Clean – removes assemblies from build folder
•   Build Configurations




               Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Questions?

   http://www.LearnNowOnline.com




        Learn More @ http://www.learnnowonline.com
        Copyright © by Application Developers Training Company

More Related Content

More from LearnNowOnline

More from LearnNowOnline (20)

Introducing LINQ
Introducing LINQIntroducing LINQ
Introducing LINQ
 
Generics
GenericsGenerics
Generics
 
Object oriented techniques
Object oriented techniquesObject oriented techniques
Object oriented techniques
 
Object-Oriented JavaScript
Object-Oriented JavaScriptObject-Oriented JavaScript
Object-Oriented JavaScript
 
SharePoint Document Management
SharePoint Document ManagementSharePoint Document Management
SharePoint Document Management
 
SharePoint: Introduction to InfoPath
SharePoint: Introduction to InfoPathSharePoint: Introduction to InfoPath
SharePoint: Introduction to InfoPath
 
Managing site collections
Managing site collectionsManaging site collections
Managing site collections
 
Web API HTTP Pipeline
Web API HTTP PipelineWeb API HTTP Pipeline
Web API HTTP Pipeline
 
Web API Basics
Web API BasicsWeb API Basics
Web API Basics
 
SQL Server: Security
SQL Server: SecuritySQL Server: Security
SQL Server: Security
 
Sql 2012 development and programming
Sql 2012  development and programmingSql 2012  development and programming
Sql 2012 development and programming
 
What's new in Silverlight 5
What's new in Silverlight 5What's new in Silverlight 5
What's new in Silverlight 5
 
KnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVCKnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVC
 
Expression Blend Motion & Interaction Design
Expression Blend Motion & Interaction DesignExpression Blend Motion & Interaction Design
Expression Blend Motion & Interaction Design
 
The Entity Data Model
The Entity Data ModelThe Entity Data Model
The Entity Data Model
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity Framework
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
Working with Controllers and Actions in MVC
Working with Controllers and Actions in MVCWorking with Controllers and Actions in MVC
Working with Controllers and Actions in MVC
 
Creating a User Interface
Creating a User InterfaceCreating a User Interface
Creating a User Interface
 
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

More C# Language Changes and Updates

  • 1. More C# Language Changes and Updates http://www.LearnNowOnline.com Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 2. Implementing New Language Features • Demo Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 3. Named and Optional Parameters • Named parameters let you specify method parameters with a name • Can reorder names when calling • Names aren’t required • Optional parameters aren’t required • Must be last in signature Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 4. Caller Information • Attributes for info about calling code • CallerFilePathAttribute • CallerLineNumberAttribute • CallerMemberNameAttribute Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 5. Covariance and Contravariance • Allow implicit conversion between types • Apply to arrays delegates and generic type arguments • Covariance: preserves type compatibilitiy • Contravariance reverses type compatibility Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 6. Embedded Interop Assemblies • Traditional COM References Hold all Metadata • Embedded Interop Assemblies only include the actual methods used • No need to deploy Primary Interop Assembly Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 7. New Command Line Options • The C# compiler has three new options • /link • /langversion • /appconfig Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 8. Including Common .NET Framework Classes • Demo Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 9. New Types of Interest • BigInteger • Complex • Tuple Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 10. Lazy Initialization • Lazy<T> allows just-in-time initialization • Object not created until first used • Can specify constructor and thread safety Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 11. New Generic Types • ReadOnly interfaces for Lists, Collections, and Dictionarys • New Set types Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 12. Breaking Changes • Demo Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 13. Breaking Changes • Lambda Expressions • LINQ Expressions • Named Arguments • Overload Resolution Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 14. Essential Skills • Demo Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 15. Debugging Tips • Breakpoints • Shortcut Keys • Ctrl+F10 – Step Over • Ctrl+F11 – Step Into • Shift+F11 – Step Out • Move Cursor • Run To Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 16. Debugger Windows • Exceptions • Autos • Locals • Watch • Immediate • Call Stack Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 17. Building Code • Can build both Solutions and Projects • Build – only what needs to be built • Rebuild – forces build of all projects • Clean – removes assemblies from build folder • Build Configurations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 18. Questions? http://www.LearnNowOnline.com Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company