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