Your SlideShare is downloading. ×
More C# Language Changes and Updates
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

More C# Language Changes and Updates

261
views

Published on

Latest changes and updates for C# Language.

Latest changes and updates for C# Language.

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
261
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. More C# Language Changesand Updates http://www.LearnNowOnline.com Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 2. Implementing New LanguageFeatures • Demo Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 3. Named and OptionalParameters • 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 .NETFramework 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