You can't send a snippet of a managed language to SQL Server in the same fashion that you can send a TSQL query. Any managed code must be compiled into an assembly and the assembly is then registered with the database and server.
Check out this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql90/html/sql_ovyukonnetprogfeatures.asp-Mike
>Sorry to be confusing. I was thinking aloud and wondering if the current issue of being able to inject SQL code into parameterised queries written in t_sql would be made worse if the same thing were possible using a .Net language.
>
>Simon