Beispiel #1
0
        private static bool AreEqualTextDecorations(TextDecorationCollection a, TextDecorationCollection b)
        {
            if (a == null && b == null)
            {
                return(true);
            }
            if (a == null && !b.Any())
            {
                return(true);
            }

            if (b == null && !a.Any())
            {
                return(true);
            }

            if (a != null && b != null)
            {
                return(Equals(a.FirstOrDefault(), b.FirstOrDefault()));
            }
            return(false);
        }