예제 #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);
        }
예제 #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);
        }