title: How to create a new instance of same type from existing instance?
body: <p>Suppose I have following kind of code:</p>
  
  <pre><code>foreach(var x in Mylist)  //MyList is EntitySet
  {
  //......
  }
  </code></pre>
  
  <p>I want to know the type of x and create another new instance of same type and the clone x to new instance like:</p>
  
  <pre><code>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 
  }
  </code></pre>
  
  <p>MyList is dynamic data, x could be different type when Mylist changed. 
  How to implement this request?</p>