Example #1
0
        public static bool AllNonDefaultOrEmpty <T>(this IEnumerable <T> list)
        {
            DefaultValueComparer <T> instance = DefaultValueComparer <T> .Instance;

            foreach (T local in list)
            {
                if (instance.IsDefaultValue(ref local))
                {
                    return(false);
                }
            }
            return(true);
        }
 static DefaultValueComparer()
 {
     DefaultValueComparer <T> .instance = DefaultValueComparer <T> .Create();
 }