How can I import linq and other libraries into invoke code activity?

Let us know more about the use case / what you want to achieve. The best along with sample data

Also have a look here: