/// <summary>
 /// Gets the placeholders of the control.
 ///
 /// </summary>
 /// <param name="control">The control.</param><param name="result">The result.</param>
 private static void GetPlaceholders(Control control, List <Placeholder72> result)
 {
     Assert.ArgumentNotNull((object)control, "control");
     Assert.ArgumentNotNull((object)result, "result");
     if (control is Placeholder)
     {
         result.Add(control as Placeholder72);
     }
     else if (control is IHasPlaceholders)
     {
         List <Placeholder> placeholders = (control as IHasPlaceholders).GetPlaceholders();
         if (placeholders == null)
         {
             return;
         }
         result.AddRange((IEnumerable <Placeholder72>)placeholders);
     }
     else
     {
         foreach (Control control1 in control.Controls)
         {
             Placeholder72.GetPlaceholders(control1, result);
         }
     }
 }
        /// <summary>
        /// Gets the placeholders of a control.
        /// </summary>
        /// <param name="control">The control.</param><param name="includeSelf">if set to <c>true</c> [include self].</param>
        /// <returns/>
        public static List <Placeholder72> GetPlaceholders(Control control, bool includeSelf)
        {
            Assert.ArgumentNotNull((object)control, "control");
            List <Placeholder72> result = new List <Placeholder72>();

            if (includeSelf)
            {
                Placeholder72.GetPlaceholders(control, result);
            }
            else
            {
                foreach (Control control1 in control.Controls)
                {
                    Placeholder72.GetPlaceholders(control1, result);
                }
            }
            return(result);
        }