Ejemplo n.º 1
0
        public static AudienceNot Not(this IAudience a)
        {
            if (a == null)
            {
                return(null);
            }

            if (a is AudienceBase)
            {
                return((a as AudienceBase).Not());
            }

            throw new InvalidOperationException("Type is not supported: " + a.GetType().FullName);
        }
Ejemplo n.º 2
0
        public static IAudience Or(this IAudience a, IAudience b)
        {
            if (a == null)
            {
                throw new ArgumentNullException("a");
            }

            if (a is AudienceBase)
            {
                return((a as AudienceBase).Or(b));
            }

            throw new InvalidOperationException("Type is not supported: " + a.GetType().FullName);
        }