Andrus,
Correct me if I'm wrong, but it sounds like you basically want to execute a block of C# code? If so, have a look at Rick's article on the subject:
http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htm~~Bonnie
>>Andrus, is this a website? You need to provide a little more detail.
>
>This is WinForms application.
>
>I need to add some custom checks code before saving invoices.
>When those checks fail, saving invoice is disabled.
>In VFP I can wrote in invoice business class Save() method
>
>IF !ExecScript( myscripttable.myscriptmemofield )
> return .f.
> endif
>
>I want to re-write myscripttable.myscriptmemofield code in C#
>
>I need to create myscripttable.myscriptmemofield contents in customer site using syntax coloring C# code editor.
>
>However, I have no idea how to execute the code from database text field
>in .NET