Two different approaches presented in these articles:
SSIS 101: Object Variables, ResultSets, and Foreach Loop Containers[/url]
SSIS Design Pattern - Read a DataSet From Variable In a Script Task
If these approaches don't meet your need, try searching for 'SSIS shredding a recordset' or 'SSIS shredding an object'.