Пример #1
0
 /// <summary>
 /// Removes a member from the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> to remove from the collection.</param>
 public void Remove(XsltParameter item)
 {
     base.List.Remove(item);
 }
Пример #2
0
 /// <summary>
 /// Retrieves the index of a specified <see cref="XsltParameter"/> object in the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> object for which the index is returned.</param>
 /// <returns>
 /// The index of the specified <see cref="XsltParameter"/>. If the <see cref="XsltParameter"/> is not currently a member of the collection, it returns -1.
 /// </returns>
 public int IndexOf(XsltParameter item)
 {
     return(base.List.IndexOf(item));
 }
Пример #3
0
 /// <summary>
 /// Inserts a <see cref="XsltParameter"/> into the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param>
 /// <param name="item">The <see cref="XsltParameter"/> to insert.</param>
 public void Insert(int index, XsltParameter item)
 {
     base.List.Insert(index, item);
 }
Пример #4
0
 /// <summary>
 /// Adds a <see cref="XsltParameter"/> to the end of the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> to be added to the end of the collection.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(XsltParameter item)
 {
     return(base.List.Add(item));
 }
Пример #5
0
 /// <summary>
 /// Determines whether a <see cref="XsltParameter"/> is in the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> to locate in the collection.</param>
 /// <returns>
 /// <see langword="true" /> if <paramref name="item"/> is found in the
 /// collection; otherwise, <see langword="false" />.
 /// </returns>
 public bool Contains(XsltParameter item)
 {
     return(base.List.Contains(item));
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XsltParameterCollection"/> class
 /// with the specified array of <see cref="XsltParameter"/> instances.
 /// </summary>
 public XsltParameterCollection(XsltParameter[] value)
 {
     AddRange(value);
 }
Пример #7
0
        protected override void InitializeTask(XmlNode taskNode)
        {
            // deprecated as of NAnt 0.8.4
            // TO-DO : remove this after NAnt 0.8.5 or so
            // Load parameters
            foreach (XmlNode node in taskNode) {
                if (node.LocalName.Equals("param")) {
                    Log(Level.Warning, "The usage of the <param> element is"
                        + " deprecated. Please use the <parameters> collection"
                        + " instead.");

                    // create and fill XsltParameter
                    XsltParameter xsltParameter = new XsltParameter();
                    xsltParameter.ParameterName = Project.ExpandProperties(node.Attributes["name"].Value, Location);
                    xsltParameter.Value = Project.ExpandProperties(node.Attributes["expression"].Value, Location);

                    // add parameter to collection
                    _xsltParameters.Add(xsltParameter);
                }
            }
        }
Пример #8
0
 /// <summary>
 /// Inserts a <see cref="XsltParameter"/> into the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param>
 /// <param name="item">The <see cref="XsltParameter"/> to insert.</param>
 public void Insert(int index, XsltParameter item)
 {
     base.List.Insert(index, item);
 }
Пример #9
0
 /// <summary>
 /// Removes a member from the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> to remove from the collection.</param>
 public void Remove(XsltParameter item)
 {
     base.List.Remove(item);
 }
Пример #10
0
 /// <summary>
 /// Retrieves the index of a specified <see cref="XsltParameter"/> object in the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> object for which the index is returned.</param> 
 /// <returns>
 /// The index of the specified <see cref="XsltParameter"/>. If the <see cref="XsltParameter"/> is not currently a member of the collection, it returns -1.
 /// </returns>
 public int IndexOf(XsltParameter item)
 {
     return base.List.IndexOf(item);
 }
Пример #11
0
 /// <summary>
 /// Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.        
 /// </summary>
 /// <param name="array">The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.</param> 
 /// <param name="index">The zero-based index in <paramref name="array"/> at which copying begins.</param>
 public void CopyTo(XsltParameter[] array, int index)
 {
     base.List.CopyTo(array, index);
 }
Пример #12
0
 /// <summary>
 /// Determines whether a <see cref="XsltParameter"/> is in the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> to locate in the collection.</param> 
 /// <returns>
 /// <see langword="true" /> if <paramref name="item"/> is found in the 
 /// collection; otherwise, <see langword="false" />.
 /// </returns>
 public bool Contains(XsltParameter item)
 {
     return base.List.Contains(item);
 }
Пример #13
0
 /// <summary>
 /// Adds the elements of a <see cref="XsltParameter"/> array to the end of the collection.
 /// </summary>
 /// <param name="items">The array of <see cref="XsltParameter"/> elements to be added to the end of the collection.</param> 
 public void AddRange(XsltParameter[] items)
 {
     for (int i = 0; (i < items.Length); i = (i + 1)) {
         Add(items[i]);
     }
 }
Пример #14
0
 /// <summary>
 /// Adds a <see cref="XsltParameter"/> to the end of the collection.
 /// </summary>
 /// <param name="item">The <see cref="XsltParameter"/> to be added to the end of the collection.</param> 
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(XsltParameter item)
 {
     return base.List.Add(item);
 }