0% found this document useful (0 votes)
93 views8 pages

C# 4.0 Language Enhancements

Uploaded by

alisakhi
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 PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views8 pages

C# 4.0 Language Enhancements

Uploaded by

alisakhi
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 PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Programming C# 2.0, 3.0, 4.

Muhammed Ali Sakhi


Microsoft Certified Trainer

© PakDev.net
Note:
This video is developed on the Beta 1 of .Net
framework 4.0

This video will be updated, without notice, when


the final version will be released

© PakDev.net
New Features
Dynamic Typed Objects
Optional and Named Parameters
Improved COM Interoperability
Co- and Contra-Variance

© PakDev.net
New Features
Dynamic Typed Objects
Optional and Named Parameters
Improved COM Interoperability
Co- and Contra-Variance

© PakDev.net
Optional Parameters
Optional parameters allow you to omit
arguments

Default value will be used

void DoSomething(int x, int y = 5, int z = 10)


{
….
}

© PakDev.net
Named Arguments
Provide an argument using the name
corresponding parameter

No need to rely on the position in the


parameter list

DoSomething(5, z: 6);

© PakDev.net
C# 4.0 Language Enhancements

Demo

© PakDev.net
Thank you
PakDev.net

© PakDev.net

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