CG数据库 >> Generics

Generics的图片1

Generics

MP4 | Video: AVC 1280x720 | Audio: AAC 44KHz 2ch | Duration: 1.5 Hours | 301 MB

Genre: eLearning | Language: English

Like inheritance, generics offer another form of code re-use. Specifically, one developer can define an algorithm (such as sort or search) and another developer can consume that algorithm specifying the exact data type (such as String or Guid) that the algorithm should use. This video explains how generics in the Common Language Runtime (CLR) work and what kinds of types and members can be generic. We also look at the performance and memory overhead when using generic algorithms. The video concludes by discussing the importance of type safety and how generic constraints are required to maintain it.

Generics的图片2

发布日期: 2017-08-18