Delphi Generic Collections

所在平台: Udemy

课程主页: https://www.udemy.com/course/delphi-generic-collections/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Delphi 泛型集合 课程概述:泛型集合库是 Delphi RTL 最近的一个重要新增功能。通过使用此库,开发者可以在容器中实现类型安全,而无需每次都编写大量的样板代码。这将显著减少所需编写的代码量,并降低代码中的错误风险。该课程将教你如何最佳利用这个库,并充分利用其更强大的功能。 课程内容包含:所有可用容器的介绍以及它们大部分功能的深入讲解。你将学习基本容器(如 TStack、TQueue 和 TList)的基本特性(如添加、移动、移除等)。接着,课程将深入探讨更高级的主题,例如排序的内部机制。随后,我们将讨论 TDictionary 及其哈希原理,并讲解如何提供自己的哈希机制以更改其默认行为。最后,我们还将重点关注线程安全的集合,探讨它们在多线程代码中的应用。 通过掌握泛型集合库的知识,你的代码将更加简洁明了,同时在编译时能够实现更好的类型检查,学习这个课程将使编程变得更加有趣!

课程评论(0条)

课程详情

The Generic Collections Library is one of the best recent additions to the Delphi RTL. With it, you can get type safety on your containers without having to write a bunch of boilerplate code each time. This can represent a big reduction in the amount of code you need to write and also reduce bugs in your code. Learn how to best make use of this library and take advantage of some of its more powerful features.This video covers all the containers available in the collections library and gives an in-depth account of most of their capabilities. You will learn about the basic containers (TStack, TQueue and TList), covering their basic features (adding, moving, removing, etc.). Then more advanced topics such as how the internals of sorting works. Then we move on to TDictionary and how hashing works and how you can provide your own hashing mechanisms to changes its default behaviour. Finally, we look at the thread-safe collections and how they can be used in multi-threaded code.With your new knowledge of the Generic Collections Library, your code will be cleaner and more concise code, while simultaneously having better compile-time type checking - what could possibly be more fun?

课程标签

0人关注该课程

主题相关的课程