How can I "load" data into a record list using C#?

I am developing a plugin to list files and folders in a directory path. I am able to retreive the list I need as text, but I don't know how to load this data on a record list. Any thoughts?

Hi Mario,

If you define a MyStructure structure in Integration Studio, you will be able to assign the data type List of MyStructure Record to an Output Parameter of your Action. Check the generated code, you will be able to find the classes you need there.

But looking at your code, you seem to already have done that. You will have methods in your RecordList class to be able to add records, etc... you do have to create the individual records themselves (so you can add them to the list).

But I have to ask... why do you need to use an extension?