Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 TJCLHashMap 系列类,但显然这个类没有有用的公共方法。所有方法都受到“保护”。如何使用这个类?尽管 JCL 附带了一些示例,但我似乎错过了一些东西。一个基本的例子会很棒。
您应该使用在 JclContainerIntf.pas 中声明的接口。JclHashMaps 中的类实现了这些接口。 查看 jcl\examples\common\containers\hashing\HashingExample.dpr 中的一些示例(整数、字符串、对象等)
扩展它并添加在内部调用受保护方法的公共方法?