Chapter 12 Generics

Generics: algorithm reuse.

Allow: generic reference types, generic value types, generic interfaces, generic delegates; Not allow: generic enumerated types

Performance: value type better than referenc type

 

Generics in the Framework Class Library


Generics Infrastructure


Generic Interfaces


Generic Delegates


Delegate and Interface Contravariant and Covariant Generic Type Arguments


Generic Methods


Generics and Other Members


Verifiability and Constraints

posted @ 2015-03-10 15:06  小-黑  阅读(82)  评论(0编辑  收藏  举报