[Lazarus] How to cast a Interface to a Object in Lazaeus
md at delfire.net
Thu Mar 12 13:26:50 CET 2015
On Thu, Mar 12, 2015 at 8:39 AM, aradeonas <aradeonas at operamail.com> wrote:
> For example I have interface for filetypes that have type,size,name but
> have class for video,audio and picture and I want to add them in the
> list and then get them and get name and size and other propertice
> considering type.
So work using objects directly.
Why do you want to use interfaces if you will use casting for a concrete class?
More information about the Lazarus