SlideShare une entreprise Scribd logo
1  sur  45
Everything You Never Wanted to Know About .NET Generics (But Were Afraid Someone Would Ask) Copyright © 2007 by Martin L. Shoemaker
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],BIO: Martin L. Shoemaker Copyright © 2007 by Martin L. Shoemaker
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Lots of Boxes…? ,[object Object],Copyright © 2007 by Martin L. Shoemaker
… or Just Box? ,[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Lots of Boxes, or Just Box? ,[object Object],Copyright © 2007 by Martin L. Shoemaker
Four “Solutions” ,[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Inheritance ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Inheritance ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Typeless ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Typeless Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Interfaces ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Interfaces Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Wrappers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Four “Solutions”: Wrappers Copyright © 2007 by Martin L. Shoemaker
Generics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Generics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Generics ,[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Generics vs. C++ Templates ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Generics vs. C++ Templates ,[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
.NET Generics vs. Java Generics ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Generic Delegates and Events ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Constraining Generic Parameters ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Constraining Generic Parameters ,[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics Everybody Talks About… ,[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics: The Basic Collection Interfaces ,[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics: The List Collections ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics: The List Collections ,[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics: The List Collections ,[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics: The Keyed Collections ,[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics: The Keyed Collections ,[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Boring  Generics: The Keyed Collections ,[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics Nobody Ever Talks About ,[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Comparison Interfaces, Classes, and Delegates ,[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Comparison Interfaces, Classes, and Delegates ,[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Comparison Interfaces, Classes, and Delegates ,[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Other Delegates ,[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Other Delegates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Other Delegates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Other Delegates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
The  Cool  Generics: Miscellaneous ,[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Generics and Serialization ,[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Conclusion ,[object Object],[object Object],[object Object],Copyright © 2007 by Martin L. Shoemaker
Questions... ,[object Object],Copyright © 2007 by Martin L. Shoemaker
Everything You Never Wanted to Know About .NET Generics (But Were Afraid Someone Would Ask) Copyright © 2007 by Martin L. Shoemaker

Contenu connexe

Similaire à Everything You Never Wanted To Know About Net Generics

More Little Wonders of C#/.NET
More Little Wonders of C#/.NETMore Little Wonders of C#/.NET
More Little Wonders of C#/.NETBlackRabbitCoder
 
Flex3 Deep Dive Final
Flex3 Deep Dive FinalFlex3 Deep Dive Final
Flex3 Deep Dive FinalRJ Owen
 
javasebeyondbasics
javasebeyondbasicsjavasebeyondbasics
javasebeyondbasicswebuploader
 
ptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdf
ptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdfptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdf
ptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdfjorgeulises3
 
Ef Poco And Unit Testing
Ef Poco And Unit TestingEf Poco And Unit Testing
Ef Poco And Unit TestingJames Phillips
 
.Net Classes and Objects | UiPath Community
.Net Classes and Objects | UiPath Community.Net Classes and Objects | UiPath Community
.Net Classes and Objects | UiPath CommunityRohit Radhakrishnan
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010Rich Helton
 
Certification preparation - Net classses and functions.pptx
Certification preparation - Net classses and functions.pptxCertification preparation - Net classses and functions.pptx
Certification preparation - Net classses and functions.pptxRohit Radhakrishnan
 
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptxStatic abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptxMarco Parenzan
 
Code snippets
Code snippetsCode snippets
Code snippetsSireesh K
 
Introduction to Design Patterns and Singleton
Introduction to Design Patterns and SingletonIntroduction to Design Patterns and Singleton
Introduction to Design Patterns and SingletonJonathan Simon
 

Similaire à Everything You Never Wanted To Know About Net Generics (20)

More Little Wonders of C#/.NET
More Little Wonders of C#/.NETMore Little Wonders of C#/.NET
More Little Wonders of C#/.NET
 
Generics
GenericsGenerics
Generics
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
 
Flex3 Deep Dive Final
Flex3 Deep Dive FinalFlex3 Deep Dive Final
Flex3 Deep Dive Final
 
Beginning linq
Beginning linqBeginning linq
Beginning linq
 
javasebeyondbasics
javasebeyondbasicsjavasebeyondbasics
javasebeyondbasics
 
ptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdf
ptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdfptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdf
ptu3-harvey-m-deitel-paul-j-deitel-tem-r-nieto-contributor-paul-j-deitel.pdf
 
Clean Code
Clean CodeClean Code
Clean Code
 
Ef Poco And Unit Testing
Ef Poco And Unit TestingEf Poco And Unit Testing
Ef Poco And Unit Testing
 
.Net Classes and Objects | UiPath Community
.Net Classes and Objects | UiPath Community.Net Classes and Objects | UiPath Community
.Net Classes and Objects | UiPath Community
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010
 
I x scripting
I x scriptingI x scripting
I x scripting
 
C#ppt
C#pptC#ppt
C#ppt
 
Certification preparation - Net classses and functions.pptx
Certification preparation - Net classses and functions.pptxCertification preparation - Net classses and functions.pptx
Certification preparation - Net classses and functions.pptx
 
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptxStatic abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
 
csharp.docx
csharp.docxcsharp.docx
csharp.docx
 
Code snippets
Code snippetsCode snippets
Code snippets
 
Introduction to Design Patterns and Singleton
Introduction to Design Patterns and SingletonIntroduction to Design Patterns and Singleton
Introduction to Design Patterns and Singleton
 
Linq
LinqLinq
Linq
 
Linq
LinqLinq
Linq
 

Everything You Never Wanted To Know About Net Generics