<p>I'm trying to do something that gets a cs file in runtime from user make it meaningful to assembly get its properties, methods etc. </p>

<p>Is there a way to do this by reflection in C#?</p>

You can compile it reasonably easily using the
CSharpCodeProvider
. You can download the source code for my snippet compiler, Snippy, from the
C# in Depth web site
. That uses CSharpCodeProvider, so you could use it as sample code.