Wednesday, September 26, 2012

Generating Executable Code or Class Libraries for Custom Class Snippets (C# Script) at Runtime

Generating Executable Code or Class Libraries for Custom Class Snippets (C# Script) at Runtime


Generating Executable Code or Class Libraries for Custom Class Snippets (C# Script) at Runtime

Posted: 19 Sep 2012 09:12 AM PDT

This Article provides a code Snippet to illustrate generating executable code (classes) at run time using C# compiler. This Sample also includes Code to use Reflection to create instance of a class (from specified namespace) and also to call class methods alongwith parameters.

Nhibernate for Database Independency with example

Posted: 25 Sep 2012 02:26 AM PDT

Hibernate is a persistence engine in the form of a Framework. It loads business objects from a database and saves changes from those objects back to the database. As we mentioned above, it can load or save an entire object graph with just a line or two of code. NHibernate uses mapping files to guide its translation from the database to business objects and back again. As an alternative, you can use attributes on classes and properties, instead of mapping files.

C# CODE PROVIDER ( CSharpCodeProvider )

Posted: 25 Sep 2012 05:51 AM PDT

We can leverage CSharpCodeProvider features's to achieve various development related requirement which otherwise would not be possible at design time. A suitable example could be; work-around for "Modifying Custom Attribute's properties at run-time" which otherwise would not be possible in straight way.

How to use windows forms in the webapplication.

Posted: 25 Sep 2012 10:33 PM PDT

generally we cant use some windowsforms functionalities in the webapplications like previously in this DNS we had a large discussion for how to select multiple files to upload the images to server for this i gave the alternate solutions for this but no direct way for selecting multiple files as we do in winforms application. Now i found a way to use that functionality by making the activex object.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home