Exemplo n.º 1
0
 /// <summary>
 /// Clones this Person object to a new Person object
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="deepCopy">if set to <c>true</c> a deep copy is made. If false, only the basic entity properties are copied.</param>
 /// <returns></returns>
 public static Person Clone(this Person source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as Person);
     }
     else
     {
         var target = new Person();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }