Beispiel #1
0
        public override IPermission Intersect(IPermission target)
        {
            try
            {
                if (null == target)
                {
                    return(null);
                }
                CustomPermission PassedPermission = (CustomPermission)target;

                if (!PassedPermission.IsUnrestricted())
                {
                    return(PassedPermission);
                }
                return(this.Copy());
            }
            catch (InvalidCastException)
            {
                throw new ArgumentException("Argument_WrongType", this.GetType().FullName);
            }
        }