0% found this document useful (0 votes)
39 views

More CSharp Language Changes and Updates

More C# Language Changes and Updates Learn More @ Copyright (c) by Application Developers Training Company. Named parameters let you specify method parameters with a name Can reorder names when calling Optional parameters aren't required Must be last in signature. Embedded interop assemblies hold all metadata.

Uploaded by

Craig
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

More CSharp Language Changes and Updates

More C# Language Changes and Updates Learn More @ Copyright (c) by Application Developers Training Company. Named parameters let you specify method parameters with a name Can reorder names when calling Optional parameters aren't required Must be last in signature. Embedded interop assemblies hold all metadata.

Uploaded by

Craig
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 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 arent required

Optional parameters arent 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy