コード例 #1
0
 /// <summary>
 /// Clones this PageContext object to a new PageContext 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 PageContext Clone(this PageContext source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as PageContext);
     }
     else
     {
         var target = new PageContext();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }