Exemplo n.º 1
0
    /// <summary>
    ///     An XamlCollection extension method that queries if 'target' is
    ///     empty.
    /// </summary>
    /// <param name="target">
    ///     The target to act on.
    /// </param>
    /// <returns>
    ///     true if empty, otherwise false.
    /// </returns>
    public static bool IsEmpty(this XamlNodeCollection target)
    {

        logger.Trace("Entered IsEmpty()");
        return target == null || target.Count == 0;
    }
Exemplo n.º 2
0
 /// <summary>
 ///     An XamlCollection extension method that queries if 'target' is
 ///     empty.
 /// </summary>
 /// <param name="target">
 ///     The target to act on.
 /// </param>
 /// <returns>
 ///     true if empty, otherwise false.
 /// </returns>
 public static bool IsEmpty(this XamlNodeCollection target)
 {
     return(target == null || target.Count == 0);
 }