I guess you are using a conventional DB connection string in your CLR function. If yes replace it with
SqlConnection connection = new SqlConnection("context connection=true")
This will use the connection of the calling context, therefore temporary tables in that context will be available to the CLR function.
If this doesnt work or your have already done this than share the CLR code for further help