Suppose I have following kind of code:
foreach(var x in Mylist)  //MyList is EntitySet
{
//......
}
I want to know the type of x and create another new instance of same type and the clone x to new instance like:
foreach(var x in Mylist)
{
  string tyoename = typeof(x).AssemblyQualifiedName; //get the type of x, but i got error here
  //create instance of the type
  //clone x data to new instance 
}
MyList is dynamic data, x could be different type when Mylist changed. How to implement this request?
 
     
    