TMS Software Blog: JSON persistence: generics
Summary
The link to the source code and sample can be found at the end of this article. Currently the garage holds 2 types of cars, TGasolineCar and TElectricCar both are class(TCar) and the collection is defined as TObjectDictionary to allow all cars to be added to the garage. The sample is for you to set debug break points to be able to trace the execution, notes are included in the code where I felt clarification was needed. Implementing the ITMSFNCBaseListIO allows the framework to query the base type of the item class in the list, this will be passed back to CreateObject in the Root Object class. Capture and RESTORE the IO and root refrences when you Load your object.
Classifications
industries
Retail
applications
Business Planning / Continuity
AskAI Classifications
Labels
Software Components
Developer Tools
UI Controls