Create Class in C#.net Dynamically in Runtime

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
 

Hi

I have critical requirement did any have experience on this problem please help out!

Class Name: RuntimeClass

public class RuntimeClass
{
    private int GenClass_id;
    private string fname;
    private string lname;

----- Constructor
    public RuntimeClass()
    {
        id = new.Guid();
    }
    
   public int GenClass_ID
    {
      get{return GenClass_iD;}
    }
    
    public string FirstName
    {
        Get{ return this.fname;}
        Set{fname = value;}
    }

    public string LastName
    {
        Get{ return this.lname;}
        Set{fname = value;}
   }  

}


i need to Generate class using dynamically in runtime

how to generate the class runtime did any one have the solution for this?


kind regards
orcas<hr size="1" align="left" width="25% Orcas

View the full article
 
Back
Top