Ejemplo n.º 1
0
        /// <summary>
        /// <para>Adds an <see cref="ParameterData"/> into the collection.</para>
        /// </summary>
        /// <param name="parameterData">
        /// <para>The <see cref="ParameterData"/> to add. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </param>
        /// <remarks>
        /// <para>If a reference already exists in the collection by <seealso cref="ParameterData.Name"/>, it will be replaced with the new reference.</para>
        /// </remarks>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="parameterData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        /// <exception cref="InvalidOperationException">
        /// <para><seealso cref="ParameterData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        public void Add(ParameterData parameterData)
        {
            ArgumentValidation.CheckForNullReference(parameterData, "parameterData");
            ArgumentValidation.CheckForInvalidNullNameReference(parameterData.Name, typeof(ParameterData).FullName);

            BaseAdd(parameterData.Name, parameterData);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// <para>Copies the entire <see cref="ParameterDataCollection"/> to a compatible one-dimensional <see cref="Array"/>, starting at the specified index of the target array.</para>
 /// </summary>
 /// <param name="array">
 /// <para>The one-dimensional <see cref="ParameterDataCollection"/> array that is the destination of the elements copied from <see cref="ParameterDataCollection"/>. The <see cref="ParameterData"/> array must have zero-based indexing.</para>
 /// </param>
 /// <param name="index">
 /// <para>The zero-based index in array at which copying begins.</para>
 /// </param>
 public void CopyTo(ParameterData[] array, int index)
 {
     base.CopyTo(array, index);
 }