Exemplo n.º 1
0
        public IRemoveAttributeCommandFromTargetSyntax RemoveAttribute(string attribute)
        {
            if (String.IsNullOrEmpty(attribute))
            {
                throw new ArgumentNullException("attribute");
            }

            var commandBuilder = new RemoveAttributeCommandBuilder(this, attribute);

            return(commandBuilder);
        }
Exemplo n.º 2
0
        public IRemoveAttributeCommandFromTargetSyntax RemoveAttributes(params string[] attributes)
        {
            if (attributes == null || attributes.Length == 0)
            {
                throw new ArgumentNullException("attributes");
            }
            if (attributes.Any(String.IsNullOrEmpty))
            {
                throw new ArgumentNullException("attributes");
            }

            var commandBuilder = new RemoveAttributeCommandBuilder(this, attributes);

            return(commandBuilder);
        }