示例#1
0
 public static bool IsEmpty(IEnumerable <Formating> formatings)
 {
     foreach (Formating formating in formatings)
     {
         if (Formating.IsEmpty(formating))
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 public static bool ClearEmpty(IEnumerable <Formating> formatings, out List <Formating> result)
 {
     result = new List <Formating>();
     foreach (Formating formating in formatings)
     {
         if (!Formating.IsEmpty(formating))
         {
             result.Add(formating);
         }
     }
     return(result.Count > 0);
 }
示例#3
0
        public static bool TryGetNonEmpty(IEnumerable <Formating> formatings, out List <Formating> result)
        {
            result = new List <Formating>();
            if (formatings == null)
            {
                return(false);
            }

            foreach (Formating formating in formatings)
            {
                if (!Formating.IsEmpty(formating))
                {
                    result.Add(formating);
                }
            }
            return(result.Count > 0);
        }