Generics in 'NET 2'0 - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Generics in 'NET 2'0

Description:

Generic Programming is data type independent programming. ... interfaces, and methods that have placeholders (type parameters) for one or more ... – PowerPoint PPT presentation

Number of Views:165
Avg rating:3.0/5.0
Slides: 11
Provided by: Vane171
Category:

less

Transcript and Presenter's Notes

Title: Generics in 'NET 2'0


1
Generics in .NET 2.0
By Rajib Bahar
2
Agenda
  • Generic Programming
  • Generics in early days
  • What is Generics in .NET?
  • Demo
  • Enforcing constraints in Generics?
  • Demo
  • Benefits
  • Additional Information

3
Generic Programming
  • Generic Programming is data type independent
    programming. This enables developers to reuse
    same source code regardless of the datatype.
    During the 70s this concept was introduced in
    languages such as CLU and ADA.

4
Generic in early days
5
What is Generics in .NET?
  • Generics are classes, structures, interfaces, and
    methods that have placeholders (type parameters)
    for one or more of the types they store or use.
  • Generics in C, VB (and other .NET languages)
    were added as part of .NET Framework 2.0 in
    November 2005. Similar to Java, .NET generics are
    implemented in the runtime and not as a
    conversion from generic types to non-generic
    types in the compiler.

6
Demo
7
Benefits
  • As you may have noticed
  • Code Reuse.
  • Performance Improvement.
  • Type-Safety

8
Additional Information
  • Resources
  • MSDN Documentation
  • ADA Power - http//www.adapower.com/rm95.php
  • http//www.kamalpatel.net/ConvertCSharp2VB.aspx

9
Questions?
  • Find out additional details on CLR

10
Thank You!
Write a Comment
User Comments (0)
About PowerShow.com