delphiimmutabilitydelphi-xe4tlist

Make Delphi TList immutable


is it possible to make a Delphi TList immutable?
I searched in the delphi doc for a class similar to the unmodifiableList in java, but didn't found anything.

regards!


Solution

  • The Delphi RTL contains no classes that implement immutable or read-only lists. You will have to implement such a class yourself, or find a library that offers such functionality.